Package com.google.common.hash
Class HashCodes
java.lang.Object
com.google.common.hash.HashCodes
Deprecated.
Static factories for creating
HashCode instances; most users should never have to use
this. All returned instances are Serializable.- Since:
- 12.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
fromInt
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.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.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.
-
HashCodeinstead. This class is scheduled to be removed in Guava 16.0.