Interface HashCodes


@Deprecated public interface HashCodes
Deprecated.
Will be removed from public API
Utility that allows to compute hashcodes without var-arg conversion into arrays for common types of vavr.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    hash(boolean value)
    Deprecated.
    Returns the hashcode of the given value.
    static int
    hash(boolean v1, Object v2)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(byte value)
    Deprecated.
    Returns the hashcode of the given value.
    static int
    hash(byte v1, Object v2)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(char value)
    Deprecated.
    Returns the hashcode of the given value.
    static int
    hash(char v1, Object v2)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(double value)
    Deprecated.
    Returns the hashcode of the given value.
    static int
    hash(double v1, Object v2)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(float value)
    Deprecated.
    Returns the hashcode of the given value.
    static int
    hash(float v1, Object v2)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(int value)
    Deprecated.
    Returns the hashcode of the given value.
    static int
    hash(int v1, int v2)
    Deprecated.
    Return the order-dependent hash of the two given integers.
    static int
    hash(int v1, Object v2)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(long value)
    Deprecated.
    Returns the hashcode of the given value.
    static int
    hash(long v1, Object v2)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(short value)
    Deprecated.
    Returns the hashcode of the given value.
    static int
    hash(short v1, Object v2)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(Object value)
    Deprecated.
    Returns the hashcode of the given value.
    static int
    hash(Object v1, Object v2)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(Object v1, Object v2, Object v3)
    Deprecated.
    Return the order-dependent hash of the three given values.
    static int
    hash(Object v1, Object v2, Object v3, Object v4)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(Object v1, Object v2, Object v3, Object v4, Object v5)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(Object v1, Object v2, Object v3, Object v4, Object v5, Object v6)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(Object v1, Object v2, Object v3, Object v4, Object v5, Object v6, Object v7)
    Deprecated.
    Return the order-dependent hash of the two given values.
    static int
    hash(Object v1, Object v2, Object v3, Object v4, Object v5, Object v6, Object v7, Object v8)
    Deprecated.
    Return the order-dependent hash of the two given values.
  • Method Details

    • hash

      static int hash(int value)
      Deprecated.
      Returns the hashcode of the given value.
      Parameters:
      value - the value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(int v1, int v2)
      Deprecated.
      Return the order-dependent hash of the two given integers.

      The hashcode is equivalent to the hashcode of a List containing the two given values.

      More formally, it returns the value 31 * (31 + hash(v1)) + hash(v2).

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(long value)
      Deprecated.
      Returns the hashcode of the given value.
      Parameters:
      value - the value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(byte value)
      Deprecated.
      Returns the hashcode of the given value.
      Parameters:
      value - the value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(short value)
      Deprecated.
      Returns the hashcode of the given value.
      Parameters:
      value - the value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(char value)
      Deprecated.
      Returns the hashcode of the given value.
      Parameters:
      value - the value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(boolean value)
      Deprecated.
      Returns the hashcode of the given value.
      Parameters:
      value - the value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(float value)
      Deprecated.
      Returns the hashcode of the given value.
      Parameters:
      value - the value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(double value)
      Deprecated.
      Returns the hashcode of the given value.
      Parameters:
      value - the value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(Object value)
      Deprecated.
      Returns the hashcode of the given value.
      Parameters:
      value - the value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(int v1, Object v2)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the two given values.

      More formally, it returns the value 31 * (31 + hash(v1)) + hash(v2).

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(long v1, Object v2)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the two given values.

      More formally, it returns the value 31 * (31 + hash(v1)) + hash(v2).

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(byte v1, Object v2)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the two given values.

      More formally, it returns the value 31 * (31 + hash(v1)) + hash(v2).

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(short v1, Object v2)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the two given values.

      More formally, it returns the value 31 * (31 + hash(v1)) + hash(v2).

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(char v1, Object v2)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the two given values.

      More formally, it returns the value 31 * (31 + hash(v1)) + hash(v2).

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(boolean v1, Object v2)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the two given values.

      More formally, it returns the value 31 * (31 + hash(v1)) + hash(v2).

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(float v1, Object v2)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the two given values.

      More formally, it returns the value 31 * (31 + hash(v1)) + hash(v2).

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(double v1, Object v2)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the two given values.

      More formally, it returns the value 31 * (31 + hash(v1)) + hash(v2).

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(Object v1, Object v2)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the two given values.

      More formally, it returns the value 31 * (31 + hash(v1)) + hash(v2).

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(Object v1, Object v2, Object v3)
      Deprecated.
      Return the order-dependent hash of the three given values.

      The hashcode is equivalent to the hashcode of a List containing the given values.

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      v3 - the third value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(Object v1, Object v2, Object v3, Object v4)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the given values.

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      v3 - the third value to hash
      v4 - the fourth value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(Object v1, Object v2, Object v3, Object v4, Object v5)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the given values.

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      v3 - the third value to hash
      v4 - the fourth value to hash
      v5 - the fifth value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(Object v1, Object v2, Object v3, Object v4, Object v5, Object v6)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the given values.

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      v3 - the third value to hash
      v4 - the fourth value to hash
      v5 - the fifth value to hash
      v6 - the sixth value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(Object v1, Object v2, Object v3, Object v4, Object v5, Object v6, Object v7)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the given values.

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      v3 - the third value to hash
      v4 - the fourth value to hash
      v5 - the fifth value to hash
      v6 - the sixth value to hash
      v7 - the seventh value to hash
      Returns:
      the hashcode
      See Also:
    • hash

      static int hash(Object v1, Object v2, Object v3, Object v4, Object v5, Object v6, Object v7, Object v8)
      Deprecated.
      Return the order-dependent hash of the two given values.

      The hashcode is equivalent to the hashcode of a List containing the given values.

      Parameters:
      v1 - the first value to hash
      v2 - the second value to hash
      v3 - the third value to hash
      v4 - the fourth value to hash
      v5 - the fifth value to hash
      v6 - the sixth value to hash
      v7 - the seventh value to hash
      v8 - the eighth value to hash
      Returns:
      the hashcode
      See Also: