T - the type of elements maintained by this Collectionpublic interface ObjectStrategy<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
ObjectStrategy.IdentityStrategy<T>
A Strategy that uses Identity HashCode instead of the normal hashing function.
|
| Modifier and Type | Field and Description |
|---|---|
static ObjectStrategy<?> |
IDENTITY
Identity Strategy
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(T key,
T value)
Type Specific Equals function
|
int |
hashCode(T o)
Type Specific HashCode function
|
static <T> ObjectStrategy<T> |
identityStrategy() |
static final ObjectStrategy<?> IDENTITY
static <T> ObjectStrategy<T> identityStrategy()
T - the type of elements maintained by this Collectionint hashCode(T o)
o - the element that the hashcode is requested for (if object may be null)