equals(Object) and hashCode() solely by comparing/hashing
the wrapped values.
| Modifier and Type | Field and Description |
|---|---|
| private final T |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | equals(Object that)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public final T | |
| public final int |
| delegate | back to summary |
|---|---|
| private final T delegate | |
| WrapperBase | back to summary |
|---|---|
protected WrapperBase(T delegate)
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object that) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getWrappedValue | back to summary |
|---|---|
| public final T getWrappedValue() | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |