public interface GeneratedCacheKey extends Serializable
Serializable
, immutable, thread-safe object that is used as a key,
that of which is automatically generated using 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 o)
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 o)
GeneratedCacheKey
with another. If the two objects
are equal their hashCode()
values MUST be equal as well.equals
in class Object
o
- The other object to compare to.Object.equals(Object)
Copyright © 2013. All Rights Reserved.