com.mchange.v1.identicator
Class IdentityHashCodeIdenticator

java.lang.Object
  extended by com.mchange.v1.identicator.IdentityHashCodeIdenticator
All Implemented Interfaces:
Identicator

public class IdentityHashCodeIdenticator
extends java.lang.Object
implements Identicator

Two entities are considered equivalent if they share the same IdentityHashCode


Field Summary
static IdentityHashCodeIdenticator INSTANCE
           
 
Constructor Summary
IdentityHashCodeIdenticator()
           
 
Method Summary
 int hash(java.lang.Object o)
           
 boolean identical(java.lang.Object a, java.lang.Object b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static IdentityHashCodeIdenticator INSTANCE
Constructor Detail

IdentityHashCodeIdenticator

public IdentityHashCodeIdenticator()
Method Detail

identical

public boolean identical(java.lang.Object a,
                         java.lang.Object b)
Specified by:
identical in interface Identicator

hash

public int hash(java.lang.Object o)
Specified by:
hash in interface Identicator