Set to provide additional behaviour.
Methods are forwarded directly to the decorated set.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | AbstractSetDecorator(final Set<E>
the set to decorate, must not be null set)Constructor that wraps (not copies). |
| Modifier and Type | Method and Description |
|---|---|
| protected Set | Returns: the decorated setOverrides org. |
| public boolean | equals(final Object
object to be compared for equality with this set object)Overrides java. Implements java. |
| public int | hashCode()
Overrides java. Implements java. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serialization version | |
| AbstractSetDecorator | back to summary |
|---|---|
| protected AbstractSetDecorator() Constructor only used in deserialization, do not use otherwise.
| |
| AbstractSetDecorator | back to summary |
|---|---|
| protected AbstractSetDecorator(final Set<E> set) Constructor that wraps (not copies).
| |
| decorated | back to summary |
|---|---|
| protected Set Overrides org. Gets the set being decorated. | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object object) Overrides java. Implements java. Doc from java. Compares the specified object with this set for equality. Returns
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this set. The hash code of a set is
defined to be the sum of the hash codes of the elements in the set,
where the hash code of a
| |