Interface HashingStrategy<E>

  • All Superinterfaces:
    Serializable

    public interface HashingStrategy<E>
    extends Serializable
    Interface for supporting user defined hashing strategies in Sets and Maps
    • Method Detail

      • computeHashCode

        int computeHashCode​(E object)
        Computes the hashCode of the object as defined by the user.
      • equals

        boolean equals​(E object1,
                       E object2)
        Checks two objects for equality. The equality check can use the objects own equals() method or a custom method defined by the user. It should be consistent with the computeHashCode() method.