polyglot.util
Class IdentityKey

java.lang.Object
  extended by polyglot.util.IdentityKey

public class IdentityKey
extends java.lang.Object

Class to be used for inserting objects in hashtables using pointer equality.


Constructor Summary
IdentityKey(java.lang.Object obj)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int hashCode()
           
 java.lang.Object object()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentityKey

public IdentityKey(java.lang.Object obj)
Method Detail

object

public java.lang.Object object()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object