Package com.google.common.hash
Class HashCodes
- java.lang.Object
-
- com.google.common.hash.HashCodes
-
@Beta @Deprecated public final class HashCodes extends java.lang.Object
Deprecated.Use the duplicated methods inHashCodeinstead. This class is scheduled to be removed in Guava 16.0.Static factories for creatingHashCodeinstances; most users should never have to use this. All returned instances areSerializable.- Since:
- 12.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HashCodefromBytes(byte[] bytes)Deprecated.UseHashCode.fromBytes(byte[])instead.static HashCodefromInt(int hash)Deprecated.UseHashCode.fromInt(int)instead.static HashCodefromLong(long hash)Deprecated.UseHashCode.fromLong(long)instead.
-
-
-
Method Detail
-
fromInt
@Deprecated public static HashCode fromInt(int hash)
Deprecated.UseHashCode.fromInt(int)instead. This method is scheduled to be removed in Guava 16.0.Creates a 32-bitHashCode, of which the bytes will form the passed int, interpreted in little endian order.
-
fromLong
@Deprecated public static HashCode fromLong(long hash)
Deprecated.UseHashCode.fromLong(long)instead. This method is scheduled to be removed in Guava 16.0.Creates a 64-bitHashCode, of which the bytes will form the passed long, interpreted in little endian order.
-
fromBytes
@Deprecated public static HashCode fromBytes(byte[] bytes)
Deprecated.UseHashCode.fromBytes(byte[])instead. This method is scheduled to be removed in Guava 16.0.Creates aHashCodefrom a byte array. The array is defensively copied to preserve the immutability contract ofHashCode. The array cannot be empty.
-
-