Class 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
    • 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