T - the keyType 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.
|
static class |
ObjectStrategy.NormalStrategy<T>
A Strategy that simulates the normal Hash Collection Behavior if you want to use Hash Control Collections to replace normal ones.
|
| Modifier and Type | Field and Description |
|---|---|
static ObjectStrategy<?> |
IDENTITY
Identity Strategy
|
static ObjectStrategy<?> |
NORMAL
Normal 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 <T> ObjectStrategy<T> |
normalStrategy() |
static final ObjectStrategy<?> IDENTITY
static final ObjectStrategy<?> NORMAL
static <T> ObjectStrategy<T> identityStrategy()
T - the keyType of elements maintained by this Collectionstatic <T> ObjectStrategy<T> normalStrategy()
T - the keyType of elements maintained by this Collectionint hashCode(T o)
o - the element that the hashcode is requested for (if object may be null)