Top Description Methods
io.vavr.control

public Interface HashCodes

Annotations
@Deprecated
Imports
java.util.List, .Objects

Deprecated

Will be removed from public API

Utility that allows to compute hashcodes without var-arg conversion into arrays for common types of vavr.
Author
Sebastian Zarnekow

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

the hashcode
hash
(int
the value to hash
value
)

Returns the hashcode of the given value.

public static int

Returns:

the hashcode
hash
(int
the first value to hash
v1
,
int
the second value to hash
v2
)

Return the order-dependent hash of the two given integers.

public static int

Returns:

the hashcode
hash
(long
the value to hash
value
)

Returns the hashcode of the given value.

public static int

Returns:

the hashcode
hash
(byte
the value to hash
value
)

Returns the hashcode of the given value.

public static int

Returns:

the hashcode
hash
(short
the value to hash
value
)

Returns the hashcode of the given value.

public static int

Returns:

the hashcode
hash
(char
the value to hash
value
)

Returns the hashcode of the given value.

public static int

Returns:

the hashcode
hash
(boolean
the value to hash
value
)

Returns the hashcode of the given value.

public static int

Returns:

the hashcode
hash
(float
the value to hash
value
)

Returns the hashcode of the given value.

public static int

Returns:

the hashcode
hash
(double
the value to hash
value
)

Returns the hashcode of the given value.

public static int

Returns:

the hashcode
hash
(Object
the value to hash
value
)

Returns the hashcode of the given value.

public static int

Returns:

the hashcode
hash
(int
the first value to hash
v1
,
Object
the second value to hash
v2
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(long
the first value to hash
v1
,
Object
the second value to hash
v2
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(byte
the first value to hash
v1
,
Object
the second value to hash
v2
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(short
the first value to hash
v1
,
Object
the second value to hash
v2
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(char
the first value to hash
v1
,
Object
the second value to hash
v2
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(boolean
the first value to hash
v1
,
Object
the second value to hash
v2
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(float
the first value to hash
v1
,
Object
the second value to hash
v2
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(double
the first value to hash
v1
,
Object
the second value to hash
v2
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(Object
the first value to hash
v1
,
Object
the second value to hash
v2
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(Object
the first value to hash
v1
,
Object
the second value to hash
v2
,
Object
the third value to hash
v3
)

Return the order-dependent hash of the three given values.

public static int

Returns:

the hashcode
hash
(Object
the first value to hash
v1
,
Object
the second value to hash
v2
,
Object
the third value to hash
v3
,
Object
the fourth value to hash
v4
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(Object
the first value to hash
v1
,
Object
the second value to hash
v2
,
Object
the third value to hash
v3
,
Object
the fourth value to hash
v4
,
Object
the fifth value to hash
v5
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(Object
the first value to hash
v1
,
Object
the second value to hash
v2
,
Object
the third value to hash
v3
,
Object
the fourth value to hash
v4
,
Object
the fifth value to hash
v5
,
Object
the sixth value to hash
v6
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(Object
the first value to hash
v1
,
Object
the second value to hash
v2
,
Object
the third value to hash
v3
,
Object
the fourth value to hash
v4
,
Object
the fifth value to hash
v5
,
Object
the sixth value to hash
v6
,
Object
the seventh value to hash
v7
)

Return the order-dependent hash of the two given values.

public static int

Returns:

the hashcode
hash
(Object
the first value to hash
v1
,
Object
the second value to hash
v2
,
Object
the third value to hash
v3
,
Object
the fourth value to hash
v4
,
Object
the fifth value to hash
v5
,
Object
the sixth value to hash
v6
,
Object
the seventh value to hash
v7
,
Object
the eighth value to hash
v8
)

Return the order-dependent hash of the two given values.

Method Detail

hashback to summary
public static int hash(int value)

Returns the hashcode of the given value.

Parameters
value:int

the value to hash

Returns:int

the hashcode

See Also
Integer#hashCode()
hashback to summary
public static int hash(int v1, int v2)

Return the order-dependent hash of the two given integers.

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

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

Parameters
v1:int

the first value to hash

v2:int

the second value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(long value)

Returns the hashcode of the given value.

Parameters
value:long

the value to hash

Returns:int

the hashcode

See Also
Long#hashCode()
hashback to summary
public static int hash(byte value)

Returns the hashcode of the given value.

Parameters
value:byte

the value to hash

Returns:int

the hashcode

See Also
Byte#hashCode()
hashback to summary
public static int hash(short value)

Returns the hashcode of the given value.

Parameters
value:short

the value to hash

Returns:int

the hashcode

See Also
Short#hashCode()
hashback to summary
public static int hash(char value)

Returns the hashcode of the given value.

Parameters
value:char

the value to hash

Returns:int

the hashcode

See Also
Character#hashCode()
hashback to summary
public static int hash(boolean value)

Returns the hashcode of the given value.

Parameters
value:boolean

the value to hash

Returns:int

the hashcode

See Also
Boolean#hashCode()
hashback to summary
public static int hash(float value)

Returns the hashcode of the given value.

Parameters
value:float

the value to hash

Returns:int

the hashcode

See Also
Float#hashCode()
hashback to summary
public static int hash(double value)

Returns the hashcode of the given value.

Parameters
value:double

the value to hash

Returns:int

the hashcode

See Also
Double#hashCode()
hashback to summary
public static int hash(Object value)

Returns the hashcode of the given value.

Parameters
value:Object

the value to hash

Returns:int

the hashcode

See Also
Objects#hashCode()
hashback to summary
public static int hash(int v1, Object v2)

Return the order-dependent hash of the two given values.

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

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

Parameters
v1:int

the first value to hash

v2:Object

the second value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(long v1, Object v2)

Return the order-dependent hash of the two given values.

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

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

Parameters
v1:long

the first value to hash

v2:Object

the second value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(byte v1, Object v2)

Return the order-dependent hash of the two given values.

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

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

Parameters
v1:byte

the first value to hash

v2:Object

the second value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(short v1, Object v2)

Return the order-dependent hash of the two given values.

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

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

Parameters
v1:short

the first value to hash

v2:Object

the second value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(char v1, Object v2)

Return the order-dependent hash of the two given values.

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

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

Parameters
v1:char

the first value to hash

v2:Object

the second value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(boolean v1, Object v2)

Return the order-dependent hash of the two given values.

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

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

Parameters
v1:boolean

the first value to hash

v2:Object

the second value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(float v1, Object v2)

Return the order-dependent hash of the two given values.

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

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

Parameters
v1:float

the first value to hash

v2:Object

the second value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(double v1, Object v2)

Return the order-dependent hash of the two given values.

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

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

Parameters
v1:double

the first value to hash

v2:Object

the second value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(Object v1, Object v2)

Return the order-dependent hash of the two given values.

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

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

Parameters
v1:Object

the first value to hash

v2:Object

the second value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(Object v1, Object v2, Object v3)

Return the order-dependent hash of the three given values.

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

Parameters
v1:Object

the first value to hash

v2:Object

the second value to hash

v3:Object

the third value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(Object v1, Object v2, Object v3, Object v4)

Return the order-dependent hash of the two given values.

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

Parameters
v1:Object

the first value to hash

v2:Object

the second value to hash

v3:Object

the third value to hash

v4:Object

the fourth value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(Object v1, Object v2, Object v3, Object v4, Object v5)

Return the order-dependent hash of the two given values.

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

Parameters
v1:Object

the first value to hash

v2:Object

the second value to hash

v3:Object

the third value to hash

v4:Object

the fourth value to hash

v5:Object

the fifth value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(Object v1, Object v2, Object v3, Object v4, Object v5, Object v6)

Return the order-dependent hash of the two given values.

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

Parameters
v1:Object

the first value to hash

v2:Object

the second value to hash

v3:Object

the third value to hash

v4:Object

the fourth value to hash

v5:Object

the fifth value to hash

v6:Object

the sixth value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(Object v1, Object v2, Object v3, Object v4, Object v5, Object v6, Object v7)

Return the order-dependent hash of the two given values.

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

Parameters
v1:Object

the first value to hash

v2:Object

the second value to hash

v3:Object

the third value to hash

v4:Object

the fourth value to hash

v5:Object

the fifth value to hash

v6:Object

the sixth value to hash

v7:Object

the seventh value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])
hashback to summary
public static int hash(Object v1, Object v2, Object v3, Object v4, Object v5, Object v6, Object v7, Object v8)

Return the order-dependent hash of the two given values.

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

Parameters
v1:Object

the first value to hash

v2:Object

the second value to hash

v3:Object

the third value to hash

v4:Object

the fourth value to hash

v5:Object

the fifth value to hash

v6:Object

the sixth value to hash

v7:Object

the seventh value to hash

v8:Object

the eighth value to hash

Returns:int

the hashcode

See Also
List#hashCode(), java.util.Arrays#hashCode(Object[])