com.threerings.util
Class ArrayKey

java.lang.Object
  extended by com.threerings.util.ArrayKey

public class ArrayKey
extends Object

A hash key that uses Arrays.deepHashCode(java.lang.Object[]) and Arrays.deepEquals(java.lang.Object[], java.lang.Object[]) to hash/compare an array of elements.


Field Summary
protected  Object[] _elements
          The elements to compare.
 
Constructor Summary
ArrayKey(Object... elements)
          Creates a new key with the supplied elements.
 
Method Summary
 boolean equals(Object other)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_elements

protected Object[] _elements
The elements to compare.

Constructor Detail

ArrayKey

public ArrayKey(Object... elements)
Creates a new key with the supplied elements.

Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object