Serializable, immutable, thread-safe object that is used as a key,
automatically generated by a CacheKeyGenerator.
The implementation MUST follow the Java contract for Object#hashCode()
and Object#equals(Object) to ensure correct behavior.
It is recommended that implementations also override Object#toString()
and provide a human-readable string representation of the key.
CacheKeyGenerator
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the objects are equalThe other object to compare to. object)Compare this |
| public int |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Compare this
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() The immutable hash code of the cache key.
| |