T - object of the type user specifies at the time of instantiation of this interface.public interface ISingleCollection<T> extends ICollectionIterable<T>, java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T objT)
The implementor of this method should provide the mechanism to add the object to the collection .
|
void |
clear()
Removes all of the elements from this SingleCollection.
|
boolean |
contains(T objT)
The implementation of this method checks the presence of a specified element in the collection.
|
T |
elementAt(int index)
The implementation of this method retrieves the element based on its index.
|
T |
get(int index)
The implementation of this method retrieves the element based on the location.
|
boolean |
isEmpty()
The implementation of this method checks that either collection is null or empty.
|
void |
remove(int iIndex)
The implementation of this method removes the element at the specified index.
|
void |
remove(T objT)
The implementation of this method removes the element specified from the collection.
|
int |
size()
The implementation of this method retrieves the size of the collection.
|
T[] |
toArray()
The implementation of this method retrieves the array from this collection.
|
iteratorboolean add(T objT)
objT - object - object of the type user specifies at the time of instantiation of this interface.boolean contains(T objT)
objT - object of the type user specifies at the time of instantiation of this interface.T get(int index)
index - integer indicating the position of the element to be retrieved from the collection.int size()
T elementAt(int index)
index - index of the element to be retrieved from the collection.T[] toArray()
void remove(int iIndex)
iIndex - - position of the element.void remove(T objT)
objT - - element to be removed.boolean isEmpty()
void clear()