Package com.mchange.v1.identicator
Class IdentityHashCodeIdenticator
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static IdentityHashCodeIdenticator
INSTANCE
-
Constructor Summary
Constructors Constructor Description IdentityHashCodeIdenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
hash(java.lang.Object o)
boolean
identical(java.lang.Object a, java.lang.Object b)
-
-
-
Field Detail
-
INSTANCE
public static IdentityHashCodeIdenticator INSTANCE
-
-
Method Detail
-
identical
public boolean identical(java.lang.Object a, java.lang.Object b)
- Specified by:
identical
in interfaceIdenticator
-
hash
public int hash(java.lang.Object o)
- Specified by:
hash
in interfaceIdenticator
-
-