Method Summary |
|
public boolean | add(Object object) Adds the specified element to this set if it is not already present. |
public void | clear() Removes the element from this singleton. |
public boolean | contains(Object object) Returns
true if this singleton contains the specified element. |
public Object | get() Returns the element in this singleton. |
public boolean | isEmpty() |
public Iterator | iterator() Returns an iterator over the element of this singleton. |
public boolean | remove(Object object) Removes the specified element from this singleton, if it is present. |
public int | size() Returns 1 if this singleton contains an element, or 0 otherwise. |