Package io.trino.util

Interface LongLong2LongOpenCustomBigHashMap.HashStrategy

Enclosing class:
LongLong2LongOpenCustomBigHashMap

public static interface LongLong2LongOpenCustomBigHashMap.HashStrategy
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(long a1, long a2, long b1, long b2)
    Returns true if the given elements are equal with respect to this hash strategy.
    long
    hashCode(long e1, long e2)
    Returns the hash code of the specified element with respect to this hash strategy.
  • Method Details

    • hashCode

      long hashCode(long e1, long e2)
      Returns the hash code of the specified element with respect to this hash strategy.
      Parameters:
      e1 - first half of the element.
      e2 - second half of the element.
      Returns:
      the hash code of the given element with respect to this hash strategy.
    • equals

      boolean equals(long a1, long a2, long b1, long b2)
      Returns true if the given elements are equal with respect to this hash strategy.
      Parameters:
      a1 - first half of an element.
      a2 - second half an element.
      b1 - first half of another element.
      b2 - second half of another element.
      Returns:
      true if the two specified elements are equal with respect to this hash strategy.