Interface HashCodes
-
@Deprecated public interface HashCodes
Deprecated.Will be removed from public APIUtility that allows to compute hashcodes without var-arg conversion into arrays for common types of vavr.
-
-
Method Summary
All Methods Static Methods Deprecated Methods Modifier and Type Method Description static int
hash(boolean value)
Deprecated.Returns the hashcode of the given value.static int
hash(boolean v1, java.lang.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, java.lang.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, java.lang.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, java.lang.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, java.lang.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, java.lang.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, java.lang.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, java.lang.Object v2)
Deprecated.Return the order-dependent hash of the two given values.static int
hash(java.lang.Object value)
Deprecated.Returns the hashcode of the given value.static int
hash(java.lang.Object v1, java.lang.Object v2)
Deprecated.Return the order-dependent hash of the two given values.static int
hash(java.lang.Object v1, java.lang.Object v2, java.lang.Object v3)
Deprecated.Return the order-dependent hash of the three given values.static int
hash(java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4)
Deprecated.Return the order-dependent hash of the two given values.static int
hash(java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5)
Deprecated.Return the order-dependent hash of the two given values.static int
hash(java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5, java.lang.Object v6)
Deprecated.Return the order-dependent hash of the two given values.static int
hash(java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5, java.lang.Object v6, java.lang.Object v7)
Deprecated.Return the order-dependent hash of the two given values.static int
hash(java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5, java.lang.Object v6, java.lang.Object v7, java.lang.Object v8)
Deprecated.Return the order-dependent hash of the two given values.
-
-
-
Method Detail
-
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:
Integer.hashCode()
-
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 hashv2
- the second value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
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:
Long.hashCode()
-
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:
Byte.hashCode()
-
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:
Short.hashCode()
-
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:
Character.hashCode()
-
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:
Boolean.hashCode()
-
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:
Float.hashCode()
-
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:
Double.hashCode()
-
hash
static int hash(java.lang.Object value)
Deprecated.Returns the hashcode of the given value.- Parameters:
value
- the value to hash- Returns:
- the hashcode
- See Also:
Object.hashCode()
-
hash
static int hash(int v1, java.lang.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 hashv2
- the second value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(long v1, java.lang.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 hashv2
- the second value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(byte v1, java.lang.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 hashv2
- the second value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(short v1, java.lang.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 hashv2
- the second value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(char v1, java.lang.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 hashv2
- the second value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(boolean v1, java.lang.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 hashv2
- the second value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(float v1, java.lang.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 hashv2
- the second value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(double v1, java.lang.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 hashv2
- the second value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(java.lang.Object v1, java.lang.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 hashv2
- the second value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(java.lang.Object v1, java.lang.Object v2, java.lang.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 hashv2
- the second value to hashv3
- the third value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.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 hashv2
- the second value to hashv3
- the third value to hashv4
- the fourth value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.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 hashv2
- the second value to hashv3
- the third value to hashv4
- the fourth value to hashv5
- the fifth value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5, java.lang.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 hashv2
- the second value to hashv3
- the third value to hashv4
- the fourth value to hashv5
- the fifth value to hashv6
- the sixth value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5, java.lang.Object v6, java.lang.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 hashv2
- the second value to hashv3
- the third value to hashv4
- the fourth value to hashv5
- the fifth value to hashv6
- the sixth value to hashv7
- the seventh value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
hash
static int hash(java.lang.Object v1, java.lang.Object v2, java.lang.Object v3, java.lang.Object v4, java.lang.Object v5, java.lang.Object v6, java.lang.Object v7, java.lang.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 hashv2
- the second value to hashv3
- the third value to hashv4
- the fourth value to hashv5
- the fifth value to hashv6
- the sixth value to hashv7
- the seventh value to hashv8
- the eighth value to hash- Returns:
- the hashcode
- See Also:
List.hashCode()
,Arrays.hashCode(Object[])
-
-