|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
E - the element typepublic interface BindingKeyedSet<E>
An implementation of Set backed by a BindingKeyedMap.
Elements stored in this map must implement Serializable, and may
(but are not required to) implement ManagedObject. The elements
stored in this map must have a unique string representation (returned by
the toString method), which is used as the
element's key in the backing map.
| Method Summary | |
|---|---|
boolean |
add(E e)
Adds the specified element to this set if it was not already present. |
boolean |
contains(Object o)
Returns true if this set contains the specified element. |
String |
getKeyPrefix()
Returns the key prefix for this set. |
Iterator<E> |
iterator()
Returns a Serializable Iterator over the
elements in this set. |
boolean |
remove(Object o)
Removes the specified element from this set if it was present. |
| Methods inherited from interface java.util.Set |
|---|
addAll, clear, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, size, toArray, toArray |
| Method Detail |
|---|
String getKeyPrefix()
boolean add(E e)
add in interface Collection<E>add in interface Set<E>e - the element to be added
true if the set did not already contain the specified
element
IllegalArgumentException - if the argument does not
implement Serializable
ObjectNotFoundException - if value is a managed
object that has been removed from the DataManagerboolean contains(Object o)
true if this set contains the specified element.
contains in interface Collection<E>contains in interface Set<E>o - the element whose presence in the set is to be tested
true if this set contains the specified element, and
false otherwise
ObjectNotFoundException - if the specified object is a
managed object that has been removed from the
DataManager, or is equal to an element in the
collection that has been removed from the DataManagerIterator<E> iterator()
Serializable Iterator over the
elements in this set. The next method of the
returned Iterator throws ObjectNotFoundException if
the next element in the set is a managed object that has been
removed from the DataManager.
iterator in interface Collection<E>iterator in interface Iterable<E>iterator in interface Set<E>boolean remove(Object o)
remove in interface Collection<E>remove in interface Set<E>o - the element that should be removed from the set, if present
true if the element was initially present in this set
ObjectNotFoundException - if the specified object is a
managed object that has been removed from the
DataManager, or is equal to an element in the
collection that has been removed from the DataManager
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||