T - the type of elements maintained by this Collectionpublic static class ObjectStrategy.IdentityStrategy<T> extends java.lang.Object implements ObjectStrategy<T>
ObjectStrategy.IdentityStrategy<T>IDENTITY| Constructor and Description |
|---|
IdentityStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(T key,
T value)
Type Specific Equals function
|
int |
hashCode(T o)
Type Specific HashCode function
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitidentityStrategypublic int hashCode(T o)
ObjectStrategyhashCode in interface ObjectStrategy<T>o - the element that the hashcode is requested for (if object may be null)public boolean equals(T key, T value)
ObjectStrategyequals in interface ObjectStrategy<T>key - the first element that should be compared withvalue - the second element that should be compared with (if object may be null)