|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
com.sun.sgs.impl.util.BindingKeyedSetImpl<E>
E - the element typepublic class BindingKeyedSetImpl<E>
An implementation of BindingKeyedSet backed by a
BindingKeyedMap.
| Constructor Summary | |
|---|---|
BindingKeyedSetImpl(String keyPrefix)
Creates an empty set with the specified keyPrefix. |
|
| Method Summary | |
|---|---|
boolean |
add(E e)
Adds the specified element to this set if it was not already present. |
void |
clear()
|
boolean |
contains(Object o)
Returns true if this set contains the specified element. |
String |
getKeyPrefix()
Returns the key prefix for this set. |
boolean |
isEmpty()
|
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. |
boolean |
retainAll(Collection<?> c)
|
int |
size()
|
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, containsAll, equals, hashCode, removeAll, toArray, toArray |
| Constructor Detail |
|---|
BindingKeyedSetImpl(String keyPrefix)
keyPrefix.
keyPrefix - the key prefix for a service binding name
IllegalArgumentException - if keyPrefix is empty| Method Detail |
|---|
public String getKeyPrefix()
getKeyPrefix in interface BindingKeyedSet<E>public boolean add(E e)
add in interface BindingKeyedSet<E>add in interface Collection<E>add in interface Set<E>add in class AbstractCollection<E>e - the element to be added
true if the set did not already contain the specified
elementpublic void clear()
clear in interface Collection<E>clear in interface Set<E>clear in class AbstractCollection<E>public boolean contains(Object o)
true if this set contains the specified element.
contains in interface BindingKeyedSet<E>contains in interface Collection<E>contains in interface Set<E>contains in class AbstractCollection<E>o - the element whose presence in the set is to be tested
true if this set contains the specified element, and
false otherwisepublic boolean isEmpty()
isEmpty in interface Collection<E>isEmpty in interface Set<E>isEmpty in class AbstractCollection<E>public Iterator<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 BindingKeyedSet<E>iterator in interface Iterable<E>iterator in interface Collection<E>iterator in interface Set<E>iterator in class AbstractCollection<E>public boolean remove(Object o)
remove in interface BindingKeyedSet<E>remove in interface Collection<E>remove in interface Set<E>remove in class AbstractCollection<E>o - the element that should be removed from the set, if present
true if the element was initially present in this setpublic int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>retainAll in interface Set<E>retainAll in class AbstractCollection<E>
|
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 | |||||||||