velosurf.cache
Class Cache.ArrayKey

java.lang.Object
  extended by velosurf.cache.Cache.ArrayKey
Enclosing class:
Cache

public static final class Cache.ArrayKey
extends java.lang.Object


Field Summary
protected  java.lang.Object[] keys
          the wrapped array
 
Constructor Summary
Cache.ArrayKey(java.lang.Object[] keys)
          ArrayKey is a simple wrapper that provides a field-to-field equal method between encapsulated arrays
 
Method Summary
 boolean equals(java.lang.Object source)
          checks the cell-to-cell equality of two arrays
 int hashCode()
          hashcode of an array, based on the hashcode of its members
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keys

protected java.lang.Object[] keys
the wrapped array

Constructor Detail

Cache.ArrayKey

public Cache.ArrayKey(java.lang.Object[] keys)
ArrayKey is a simple wrapper that provides a field-to-field equal method between encapsulated arrays

Parameters:
keys - key values
Method Detail

equals

public boolean equals(java.lang.Object source)
checks the cell-to-cell equality of two arrays

Overrides:
equals in class java.lang.Object
Parameters:
source - source array
Returns:
a boolean indicating the equality

hashCode

public int hashCode()
hashcode of an array, based on the hashcode of its members

Overrides:
hashCode in class java.lang.Object
Returns:
the hashcode


~ooOoo~