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.


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
getClass, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2011. All Rights Reserved.