|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface provide an uniform means of dealing with a collection of Objects in QTJava. Particular implementations of this interface provide both their own storage mechanism and semantics about the default position and characteristics of the addMember method.
The isAppropriate method returns true if the object argument conforms to the type of object that the Collection is a collector of. The addMember implementation will call isAppropriate and returns true if the object is an appropriate member (and is therefore added to the collection).
The individual collection classes explain the customisations and restrictions on membership they enforce.
The type of object that a collection contains is statically determined by the isAppropriate () method. The DynamicCollection extension of Collection provides a mechanism for dynamically customising the membership requirments for individual collections.
DynamicCollection| Method Summary | |
boolean |
addMember(java.lang.Object member)
Deprecated. since QTJava 6.1 |
boolean |
hasMember(java.lang.Object member)
Deprecated. since QTJava 6.1 |
boolean |
isAppropriate(java.lang.Object object)
Deprecated. since QTJava 6.1 |
boolean |
isEmpty()
Deprecated. since QTJava 6.1 |
java.util.Enumeration |
members()
Deprecated. since QTJava 6.1 |
void |
removeMember(java.lang.Object member)
Deprecated. since QTJava 6.1 |
int |
size()
Deprecated. since QTJava 6.1 |
| Method Detail |
public boolean addMember(java.lang.Object member)
throws QTException
member - the object that should be added as a member to the collection
QTExceptionpublic boolean hasMember(java.lang.Object member)
member - the object to test for membership
public boolean isAppropriate(java.lang.Object object)
object - the object to test
DynamicCollection,
Protocolpublic boolean isEmpty()
public java.util.Enumeration members()
public void removeMember(java.lang.Object member)
throws QTException
member - the object to remove from the collection
QTExceptionpublic int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||