public interface CollectionHandler
Modifier and Type | Method and Description |
---|---|
Object |
add(Object collection,
Object object)
Add an object to the collection.
|
Object |
clear(Object collection)
Clears the collection of any objects.
|
Enumeration |
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, Object 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 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 © 2018. All rights reserved.