public class DefaultGeneratedCacheKey extends Object implements GeneratedCacheKey
Arrays.deepHashCode(Object[]) to
implement hashCode() and Arrays.deepEquals(Object[], Object[]) to implement
equals(Object)
IMPORTANT: This implementation assumes that the entire object graph passed in as the parameters Object[]
is immutable. The value returned by hashCode() is calculated in the constructor.| Constructor and Description |
|---|
DefaultGeneratedCacheKey(Object[] parameters)
Constructs a default cache key
|
public DefaultGeneratedCacheKey(Object[] parameters)
parameters - the paramters to usepublic int hashCode()
hashCode in interface GeneratedCacheKeyhashCode in class Objectpublic boolean equals(Object obj)
equals in interface GeneratedCacheKeyequals in class ObjectCopyright © 2014. All Rights Reserved.