Interface HashEqualator<T>

All Superinterfaces:
Equalator<T>, Hasher<T>
All Known Subinterfaces:
HashEqualator.IdentityHashEqualator<E>, HashEqualator.ImmutableHashEqualator<E>, HashEqualator.ImmutableValueTypeHashEqualator<E>, HashEqualator.ValueTypeHashEqualator<E>
All Known Implementing Classes:
PersistenceTypeDescriptionMember.IdentityHashEqualator, TypePair.HashEquality

public interface HashEqualator<T>
extends Equalator<T>, Hasher<T>
  • Method Details

    • hash

      int hash​(T object)
      Specified by:
      hash in interface Hasher<T>
    • equal

      boolean equal​(T object1, T object2)
      Description copied from interface: Equalator
      Compares the two given objects (object1 and object2) depending on the implementation.
      Specified by:
      equal in interface Equalator<T>
      Parameters:
      object1 - as first object to check equality on
      object2 - as second object to check equality on
      Returns:
      true if object1 equals object2, false if not.