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

ArrayKey is a simple wrapper that provides a field-to-field equal method between encapsulated arrays.


Field Summary
private  java.lang.Object[] keys
          The wrapped array.
 
Constructor Summary
Cache.ArrayKey(java.lang.Object[] keys)
          Constructor.
 
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

private java.lang.Object[] keys
The wrapped array.

Constructor Detail

Cache.ArrayKey

public Cache.ArrayKey(java.lang.Object[] keys)
Constructor.

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~