|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheKey
A Serializable
, immutable, thread-safe object that is used as a cache key.
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
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this CacheKey with another. |
int |
hashCode()
The immutable hash code of the cache key. |
Method Detail |
---|
int hashCode()
hashCode
in class Object
Object.hashCode()
boolean equals(Object o)
CacheKey
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |