Class Murmur3F
java.lang.Object
org.greenrobot.essentials.hash.Murmur3F
- All Implemented Interfaces:
Checksum, Checksum128
Murmur3F (MurmurHash3_x64_128)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetValue()Positive value.byte[]Big endian is the default in Java / network byte order.byte[]Big endian is used by most machines natively.Padded with leading 0s to ensure length of 32.longReturns the higher 64 bits of the 128 bit hash.voidreset()voidupdate(byte[] b) voidupdate(byte[] b, int off, int len) voidupdate(int b) voidupdateLongBE(long value) ConsiderupdateLongLE(long)for better performance if you do not rely on big endian (BE) byte order.voidupdateLongLE(long value) Special update method to hash long values very efficiently using Java's native little endian (LE) byte order.
-
Constructor Details
-
Murmur3F
public Murmur3F() -
Murmur3F
public Murmur3F(int seed)
-
-
Method Details
-
update
-
updateLongLE
public void updateLongLE(long value) Special update method to hash long values very efficiently using Java's native little endian (LE) byte order. Note, that you cannot mix this with other (previous) hash updates, because it only supports 8-bytes alignment. -
updateLongBE
public void updateLongBE(long value) ConsiderupdateLongLE(long)for better performance if you do not rely on big endian (BE) byte order. -
update
-
update
-
getValue
-
getValueHigh
public long getValueHigh()Returns the higher 64 bits of the 128 bit hash.- Specified by:
getValueHighin interfaceChecksum128
-
getValueBigInteger
Positive value.- Specified by:
getValueBigIntegerin interfaceChecksum128
-
getValueHexString
Padded with leading 0s to ensure length of 32.- Specified by:
getValueHexStringin interfaceChecksum128
-
getValueBytesBigEndian
public byte[] getValueBytesBigEndian()Description copied from interface:Checksum128Big endian is the default in Java / network byte order.- Specified by:
getValueBytesBigEndianin interfaceChecksum128
-
getValueBytesLittleEndian
public byte[] getValueBytesLittleEndian()Description copied from interface:Checksum128Big endian is used by most machines natively.- Specified by:
getValueBytesLittleEndianin interfaceChecksum128
-
reset
-