public final class HashtableCollectionHandler<T> extends Object implements CollectionHandler<T>
Constructor and Description |
---|
HashtableCollectionHandler() |
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.
|
String |
toString() |
public Object add(Object collection, T object)
CollectionHandler
add
in interface CollectionHandler<T>
collection
- The collection, null if no collection has been created yetobject
- The object to add to the collectionpublic Enumeration<T> elements(Object collection)
CollectionHandler
elements
in interface CollectionHandler<T>
collection
- The collectionpublic int size(Object collection)
CollectionHandler
size
in interface CollectionHandler<T>
collection
- The collectionpublic Object clear(Object collection)
CollectionHandler
clear
in interface CollectionHandler<T>
collection
- The collection, null if no collection has been created yetCopyright © 2019. All rights reserved.