C# Class SupportClass.ListCollectionSupport, csharp-ldap

This class contains different methods to manage list collections.
Inheritance: System.Collections.ArrayList
显示文件 Open project: EventStore/csharp-ldap Class Usage Examples

Public Methods

Method Description
Add ( System valueToInsert ) : bool

Adds an object to the end of the List.

AddAll ( CollectionSupport collection ) : bool

Adds all the elements contained in the specified support class collection.

AddAll ( System collection ) : bool

Adds all the elements contained in the specified collection.

AddAll ( int index, CollectionSupport collection ) : bool

Adds all the elements contained into the specified support class collection, starting at the specified position.

AddAll ( int index, System list ) : bool

Adds all the elements contained into the specified collection, starting at the specified position.

ContainsAll ( CollectionSupport collection ) : bool

Verifies if all the elements of the specified collection are contained into the current collection.

ContainsAll ( System collection ) : bool

Verifies if all the elements of the specified collection are contained into the current collection.

Get ( int index ) : Object

Returns the element at the specified position in the list.

GetLast ( ) : Object

Gets the last value from a list.

IsEmpty ( ) : bool

Return whether this list is empty.

ListCollectionClone ( ) : Object

Creates a copy of the ListCollectionSupport.

ListCollectionSupport ( ) : System

Creates a new instance of the class ListCollectionSupport.

ListCollectionSupport ( System collection ) : System

Creates a new instance of the class ListCollectionSupport.

ListCollectionSupport ( int capacity ) : System

Creates a new instance of the class ListCollectionSupport with the specified capacity.

ListIterator ( ) : System.Collections.IEnumerator

Returns an iterator of the collection.

ListIterator ( int index ) : System.Collections.IEnumerator

Returns an iterator of the collection starting at the specified position.

RemoveAll ( CollectionSupport collection ) : bool

Removes all the elements contained into the specified collection.

RemoveAll ( System collection ) : bool

Removes all the elements contained into the specified collection.

RemoveElement ( int index ) : Object

Removes the value in the specified index from the list.

RemoveElement ( System element ) : bool

Removes an specified element from the collection.

RemoveFirst ( ) : Object

Removes the first value from an array list.

RemoveLast ( ) : Object

Removes the last value from an array list.

RetainAll ( CollectionSupport collection ) : bool

Removes all the elements that aren't contained into the specified collection.

RetainAll ( System collection ) : bool

Removes all the elements that aren't contained into the specified collection.

Set ( int index, System element ) : Object

Replaces the element at the specified position in this list with the specified element.

SubList ( int startIndex, int endIndex ) : ListCollectionSupport

Returns a new list containing a portion of the current list between a specified range.

ToArray ( System objects ) : System.Object[]

Obtains an array containing all the elements of the collection.

Method Details

Add() public method

Adds an object to the end of the List.
public Add ( System valueToInsert ) : bool
valueToInsert System The value to insert in the array list.
return bool

AddAll() public method

Adds all the elements contained in the specified support class collection.
public AddAll ( CollectionSupport collection ) : bool
collection CollectionSupport The collection used to extract the elements that will be added.
return bool

AddAll() public method

Adds all the elements contained in the specified collection.
public AddAll ( System collection ) : bool
collection System The collection used to extract the elements that will be added.
return bool

AddAll() public method

Adds all the elements contained into the specified support class collection, starting at the specified position.
public AddAll ( int index, CollectionSupport collection ) : bool
index int Position at which to add the first element from the specified collection.
collection CollectionSupport
return bool

AddAll() public method

Adds all the elements contained into the specified collection, starting at the specified position.
public AddAll ( int index, System list ) : bool
index int Position at which to add the first element from the specified collection.
list System The list used to extract the elements that will be added.
return bool

ContainsAll() public method

Verifies if all the elements of the specified collection are contained into the current collection.
public ContainsAll ( CollectionSupport collection ) : bool
collection CollectionSupport The collection used to extract the elements that will be verified.
return bool

ContainsAll() public method

Verifies if all the elements of the specified collection are contained into the current collection.
public ContainsAll ( System collection ) : bool
collection System The collection used to extract the elements that will be verified.
return bool

Get() public method

Returns the element at the specified position in the list.
public Get ( int index ) : Object
index int Index of element to return.
return System.Object

GetLast() public method

Gets the last value from a list.
public GetLast ( ) : Object
return System.Object

IsEmpty() public method

Return whether this list is empty.
public IsEmpty ( ) : bool
return bool

ListCollectionClone() public method

Creates a copy of the ListCollectionSupport.
public ListCollectionClone ( ) : Object
return System.Object

ListCollectionSupport() public method

Creates a new instance of the class ListCollectionSupport.
public ListCollectionSupport ( ) : System
return System

ListCollectionSupport() public method

Creates a new instance of the class ListCollectionSupport.
public ListCollectionSupport ( System collection ) : System
collection System The collection to insert into the new object.
return System

ListCollectionSupport() public method

Creates a new instance of the class ListCollectionSupport with the specified capacity.
public ListCollectionSupport ( int capacity ) : System
capacity int The capacity of the new array.
return System

ListIterator() public method

Returns an iterator of the collection.
public ListIterator ( ) : System.Collections.IEnumerator
return System.Collections.IEnumerator

ListIterator() public method

Returns an iterator of the collection starting at the specified position.
public ListIterator ( int index ) : System.Collections.IEnumerator
index int The position to set the iterator.
return System.Collections.IEnumerator

RemoveAll() public method

Removes all the elements contained into the specified collection.
public RemoveAll ( CollectionSupport collection ) : bool
collection CollectionSupport The collection used to extract the elements that will be removed.
return bool

RemoveAll() public method

Removes all the elements contained into the specified collection.
public RemoveAll ( System collection ) : bool
collection System The collection used to extract the elements that will be removed.
return bool

RemoveElement() public method

Removes the value in the specified index from the list.
public RemoveElement ( int index ) : Object
index int The index of the value to remove.
return System.Object

RemoveElement() public method

Removes an specified element from the collection.
public RemoveElement ( System element ) : bool
element System The element to be removed.
return bool

RemoveFirst() public method

Removes the first value from an array list.
public RemoveFirst ( ) : Object
return System.Object

RemoveLast() public method

Removes the last value from an array list.
public RemoveLast ( ) : Object
return System.Object

RetainAll() public method

Removes all the elements that aren't contained into the specified collection.
public RetainAll ( CollectionSupport collection ) : bool
collection CollectionSupport The collection used to verify the elements that will be retained.
return bool

RetainAll() public method

Removes all the elements that aren't contained into the specified collection.
public RetainAll ( System collection ) : bool
collection System The collection used to verify the elements that will be retained.
return bool

Set() public method

Replaces the element at the specified position in this list with the specified element.
public Set ( int index, System element ) : Object
index int Index of element to replace.
element System Element to be stored at the specified position.
return System.Object

SubList() public method

Returns a new list containing a portion of the current list between a specified range.
public SubList ( int startIndex, int endIndex ) : ListCollectionSupport
startIndex int The start index of the range.
endIndex int The end index of the range.
return ListCollectionSupport

ToArray() public method

Obtains an array containing all the elements of the collection.
public ToArray ( System objects ) : System.Object[]
objects System The array into which the elements of the collection will be stored.
return System.Object[]