Package com.qfs.dic

Interface IHashingStrategy<T>

  • All Superinterfaces:
    Serializable

    public interface IHashingStrategy<T>
    extends Serializable
    This interfaces defines a hashing + equals strategy. It is designed to be used with dictionaries.
    Author:
    ActiveViam
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int computeHashcode​(T object)
      Compute the hashcode of an object according to that hashing strategy.
      boolean equals​(T object1, T object2)
      Computes equality of two object instances according to that hashing strategy.
    • Method Detail

      • computeHashcode

        int computeHashcode​(T object)
        Compute the hashcode of an object according to that hashing strategy.
        Parameters:
        object - The object
        Returns:
        The hashcode
      • equals

        boolean equals​(T object1,
                       T object2)
        Computes equality of two object instances according to that hashing strategy.
        Parameters:
        object1 - The first object
        object2 - The second object
        Returns:
        true if the objects are equal according to that hashing strategy, false otherwise