Package javax.cache.annotation
Interface GeneratedCacheKey
- All Superinterfaces:
Serializable
A
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.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare thisGeneratedCacheKey
with another.int
hashCode()
The immutable hash code of the cache key.
-
Method Details
-
hashCode
int hashCode()The immutable hash code of the cache key. -
equals
Compare thisGeneratedCacheKey
with another. If the two objects are equal theirhashCode()
values MUST be equal as well.
-