Method Summary |
|
public boolean | add(Object element) Ensures that this set contains the specified element.
The default implementation invokes
.add(
(element)) .
Parameters: element - element whose presence in this set is to be ensured. |
abstract protected Object | baseToDerived(Object element) Transforms a value in the
set to a value in this set.
If there is no mapping in the derived set for the specified element,
then this method returns
null .
Parameters: element - A value in the set. |
public boolean | contains(Object element) Returns
true if this set contains the specified element.
The default implementation invokes
.contains(
(element)) .
Parameters: element - object to be checked for containment in this set. |
abstract protected Object | derivedToBase(Object element) Transforms a value in this set to a value in the
set.
Parameters: element - A value in this set. |
public boolean | isEmpty() Returns
true if this set contains no elements. |
public Iterator | iterator() Returns an iterator over the elements contained in this set. |
public boolean | remove(Object element) Removes a single instance of the specified element from this set.
The default implementation invokes
.remove(
(element)) .
Parameters: element - element to be removed from this set, if present. |
public int | size() Returns the number of elements in this set. |