|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.cache.interceptor.DefaultCacheKey
public class DefaultCacheKey
Default cache key implementation. Keeps a reference to a copy of the entire parameter array from
InvocationContext.getParameters() and uses Arrays.deepHashCode(Object[]) to
implement hashCode() and Arrays.deepEquals(Object[], Object[]) to implement
equals(Object)
| Constructor Summary | |
|---|---|
DefaultCacheKey(Object[] parameters)
Constructs a default cache key |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compare this CacheKey with another. |
int |
hashCode()
The immutable hash code of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCacheKey(Object[] parameters)
parameters - the paramters to use| Method Detail |
|---|
public int hashCode()
CacheKey
hashCode in interface CacheKeyhashCode in class Objectpublic boolean equals(Object obj)
CacheKeyCacheKey with another. If the two objects are equal their CacheKey.hashCode() values
MUST be equal as well.
equals in interface CacheKeyequals in class Objectobj - The other object to compare to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||