|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Collection handler for adding/listing elements of a collection. A collection field will use this handler to add elements when it's value is set, and to enumerate then when it's value is retrieved. A collection handler is instantiated only once, must be thread safe and not use any synchronization.
| Method Summary | |
java.lang.Object |
add(java.lang.Object collection,
java.lang.Object object)
Add an object to the collection. |
java.lang.Object |
clear(java.lang.Object collection)
Clears the collection of any objects. |
java.util.Enumeration |
elements(java.lang.Object collection)
Returns an enumeration of all the elements in the collection. |
int |
size(java.lang.Object collection)
Returns the number of elements in the collection. |
| Method Detail |
public java.lang.Object add(java.lang.Object collection,
java.lang.Object object)
throws java.lang.ClassCastException
collection - The collection, null if no collection has
been created yetobject - The object to add to the collection
java.lang.ClassCastException - The collection handler does not
support collections of this type
public java.util.Enumeration elements(java.lang.Object collection)
throws java.lang.ClassCastException
collection - The collection
java.lang.ClassCastException - The collection handler does not
support collections of this type
public int size(java.lang.Object collection)
throws java.lang.ClassCastException
collection - The collection
java.lang.ClassCastException - The collection handler does not
support collections of this type
public java.lang.Object clear(java.lang.Object collection)
throws java.lang.ClassCastException
collection - The collection, null if no collection has
been created yet
java.lang.ClassCastException - The collection handler does not
support collections of this type
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||