|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An ObjectSet with mutation methods. Most applications can use the BasicModifiableObjectSet implementation.
This interface itself does not specify thread-safety semantics. The particular implementation or use in a larger interface should specify this. For example, standalone ObjectSets may be fully synchronized and thread-safe. ObjectSets related to AWT or Swing objects may require that all interaction be done on the AWT event thread.
Method Summary | |
boolean |
addObject(Object obj)
Add an object to the set. |
boolean |
removeObject(Object obj)
Remove an object from the set |
Methods inherited from interface com.virtuosotechnologies.lib.container.ObjectSet |
addObjectSetListener, contains, removeObjectSetListener |
Methods inherited from interface com.virtuosotechnologies.lib.container.ObjectContainer |
getConstraints, getContentsAsArray, getSize |
Method Detail |
public boolean addObject(Object obj)
obj
- object to add
ConstraintsMismatchException
- obj doesn't obey the constraintspublic boolean removeObject(Object obj)
obj
- object to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |