public interface CollectionHandler<T>
| Modifier and Type | Method and Description |
|---|---|
Object |
add(Object collection,
T object)
Add an object to the collection.
|
Object |
clear(Object collection)
Clears the collection of any objects.
|
Enumeration<T> |
elements(Object collection)
Returns an enumeration of all the elements in the collection.
|
int |
size(Object collection)
Returns the number of elements in the collection.
|
Object add(Object collection, T object) throws ClassCastException
collection - The collection, null if no collection has been created yetobject - The object to add to the collectionClassCastException - The collection handler does not support collections of this typeEnumeration<T> elements(Object collection) throws ClassCastException
collection - The collectionClassCastException - The collection handler does not support collections of this typeint size(Object collection) throws ClassCastException
collection - The collectionClassCastException - The collection handler does not support collections of this typeObject clear(Object collection) throws ClassCastException
collection - The collection, null if no collection has been created yetClassCastException - The collection handler does not support collections of this typeCopyright © 2016. All rights reserved.