Package org.greenrobot.essentials.hash
Interface Checksum128
-
- All Superinterfaces:
java.util.zip.Checksum
- All Known Implementing Classes:
Murmur3F
public interface Checksum128 extends java.util.zip.Checksum
Checksum interface to access 128 bit in various ways.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.math.BigInteger
getValueBigInteger()
Positive value.byte[]
getValueBytesBigEndian()
Big endian is the default in Java / network byte order.byte[]
getValueBytesLittleEndian()
Big endian is used by most machines natively.java.lang.String
getValueHexString()
Padded with leading 0s to ensure length of 32.long
getValueHigh()
Returns the higher 64 bits of the 128 bit hash.
-
-
-
Method Detail
-
getValueHigh
long getValueHigh()
Returns the higher 64 bits of the 128 bit hash.
-
getValueBigInteger
java.math.BigInteger getValueBigInteger()
Positive value.
-
getValueHexString
java.lang.String getValueHexString()
Padded with leading 0s to ensure length of 32.
-
getValueBytesBigEndian
byte[] getValueBytesBigEndian()
Big endian is the default in Java / network byte order.
-
getValueBytesLittleEndian
byte[] getValueBytesLittleEndian()
Big endian is used by most machines natively.
-
-