com.threerings.util
Class IdentityKey

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

public class IdentityKey
extends Object

A hash key based on the identities of an array of elements.


Field Summary
protected  Object[] _elements
          The elements to compare.
 
Constructor Summary
IdentityKey(Object... elements)
          Creates a new identity key with the identities of the supplied elements.
IdentityKey(Object firstElement, Object... otherElements)
          Creates a new identity key with the identities of 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

IdentityKey

public IdentityKey(Object... elements)
Creates a new identity key with the identities of the supplied elements.


IdentityKey

public IdentityKey(Object firstElement,
                   Object... otherElements)
Creates a new identity key with the identities of 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