Package io.methvin.watcher.hashing
Class Murmur3F
- java.lang.Object
-
- io.methvin.watcher.hashing.Murmur3F
-
- All Implemented Interfaces:
java.util.zip.Checksum
public class Murmur3F extends java.lang.Object implements java.util.zip.Checksum
Murmur3F (MurmurHash3_x64_128)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getValue()
java.math.BigInteger
getValueBigInteger()
Positive value.byte[]
getValueBytesBigEndian()
byte[]
getValueBytesLittleEndian()
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.void
reset()
void
update(byte[] b)
void
update(byte[] b, int off, int len)
void
update(int b)
-
-
-
Method Detail
-
update
public void update(int b)
- Specified by:
update
in interfacejava.util.zip.Checksum
-
update
public void update(byte[] b)
- Specified by:
update
in interfacejava.util.zip.Checksum
-
update
public void update(byte[] b, int off, int len)
- Specified by:
update
in interfacejava.util.zip.Checksum
-
getValue
public long getValue()
- Specified by:
getValue
in interfacejava.util.zip.Checksum
-
getValueHigh
public long getValueHigh()
Returns the higher 64 bits of the 128 bit hash.
-
getValueBigInteger
public java.math.BigInteger getValueBigInteger()
Positive value.
-
getValueHexString
public java.lang.String getValueHexString()
Padded with leading 0s to ensure length of 32.
-
getValueBytesBigEndian
public byte[] getValueBytesBigEndian()
-
getValueBytesLittleEndian
public byte[] getValueBytesLittleEndian()
-
reset
public void reset()
- Specified by:
reset
in interfacejava.util.zip.Checksum
-
-