@Beta public final class HashCodes extends Object
HashCode
instances; most users should never have to use
this. All returned instances are Serializable
.Modifier and Type | Method and Description |
---|---|
static HashCode |
fromBytes(byte[] bytes)
Creates a
HashCode from a byte array. |
static HashCode |
fromInt(int hash)
Creates a 32-bit
HashCode , of which the bytes will form the passed int, interpreted
in little endian order. |
static HashCode |
fromLong(long hash)
Creates a 64-bit
HashCode , of which the bytes will form the passed long, interpreted
in little endian order. |
public static HashCode fromInt(int hash)
HashCode
, of which the bytes will form the passed int, interpreted
in little endian order.public static HashCode fromLong(long hash)
HashCode
, of which the bytes will form the passed long, interpreted
in little endian order.Copyright © 2010-2013. All Rights Reserved.