public interface GeneratedCacheKey extends Serializable
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 |
---|---|
boolean |
equals(Object object)
Compare this
GeneratedCacheKey with another. |
int |
hashCode()
The immutable hash code of the cache key.
|
int hashCode()
hashCode
in class Object
Object.hashCode()
boolean equals(Object object)
GeneratedCacheKey
with another. If the two objects
are equal their hashCode()
values MUST be equal as well.equals
in class Object
object
- The other object to compare to.Object.equals(Object)
Copyright © 2014. All Rights Reserved.