T - object - object of the type user specifies at the time of instantiation of this interfacepublic interface ISingleCollection<T> extends ICollectionIterable<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T objT)
Add object to the collection.
|
boolean |
addAll(java.util.List<T> collection)
Adds any collection into this collection.
|
boolean |
contains(T objT)
Tests if the specified element is peresent in the collection.
|
boolean |
containsAll(ISingleCollection<T> objSingleCollection)
Returns true if this collection contains all of the elements in the specified collection otherwise false.
|
T |
elementAt(int iIndex)
Returns element at specified index.
|
void |
remove(int iIndex)
Removes the element at the specified index.
|
void |
remove(java.lang.Object objectToRemove)
Removes the specified element.
|
int |
size()
Returns number of elements in the collection.
|
iteratorboolean add(T objT)
objT - object of the type user specifies at the time of instantiation of this interfaceboolean contains(T objT)
objT - object of the type user specifies at the time of instantiation of this interfaceT elementAt(int iIndex)
iIndex - the integer indicating the position of the element to be retrieved from the collectionint size()
boolean addAll(java.util.List<T> collection)
collection - object of any class collectionvoid remove(int iIndex)
iIndex - - position of the elementvoid remove(java.lang.Object objectToRemove)
objectToRemove - object to removeboolean containsAll(ISingleCollection<T> objSingleCollection)
objSingleCollection - whose elements will be tested for containment in this ISingleCollection