Interface LongHash.Strategy

Enclosing interface:
LongHash

public static interface LongHash.Strategy
A type-specific hash strategy.
See Also:
Hash.Strategy
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(long a, long b)
    Returns true if the given elements are equal with respect to this hash strategy.
    int hashCode​(long e)
    Returns the hash code of the specified element with respect to this hash strategy.
  • Method Details

    • hashCode

      int hashCode​(long e)
      Returns the hash code of the specified element with respect to this hash strategy.
      Parameters:
      e - an element.
      Returns:
      the hash code of the given element with respect to this hash strategy.
    • equals

      boolean equals​(long a, long b)
      Returns true if the given elements are equal with respect to this hash strategy.
      Parameters:
      a - an element.
      b - another element.
      Returns:
      true if the two specified elements are equal with respect to this hash strategy.