public class Murmur3F extends java.lang.Object implements Checksum128
Modifier and Type | Method and Description |
---|---|
long |
getValue() |
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.
|
void |
reset() |
void |
update(byte[] b) |
void |
update(byte[] b,
int off,
int len) |
void |
update(int b) |
void |
updateLongBE(long value)
Consider
updateLongLE(long) for better performance if you do not rely on big endian (BE) byte order. |
void |
updateLongLE(long value)
Special update method to hash long values very efficiently using Java's native little endian (LE) byte order.
|
public void update(int b)
update
in interface java.util.zip.Checksum
public void updateLongLE(long value)
public void updateLongBE(long value)
updateLongLE(long)
for better performance if you do not rely on big endian (BE) byte order.public void update(byte[] b)
public void update(byte[] b, int off, int len)
update
in interface java.util.zip.Checksum
public long getValue()
getValue
in interface java.util.zip.Checksum
public long getValueHigh()
getValueHigh
in interface Checksum128
public java.math.BigInteger getValueBigInteger()
getValueBigInteger
in interface Checksum128
public java.lang.String getValueHexString()
getValueHexString
in interface Checksum128
public byte[] getValueBytesBigEndian()
Checksum128
getValueBytesBigEndian
in interface Checksum128
public byte[] getValueBytesLittleEndian()
Checksum128
getValueBytesLittleEndian
in interface Checksum128
public void reset()
reset
in interface java.util.zip.Checksum
Available under the Apache License, Version 2.0 - Copyright © 2012-2016 greenrobot.org. All Rights Reserved.