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.Checksumpublic 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.Checksumpublic long getValue()
getValue in interface java.util.zip.Checksumpublic long getValueHigh()
getValueHigh in interface Checksum128public java.math.BigInteger getValueBigInteger()
getValueBigInteger in interface Checksum128public java.lang.String getValueHexString()
getValueHexString in interface Checksum128public byte[] getValueBytesBigEndian()
Checksum128getValueBytesBigEndian in interface Checksum128public byte[] getValueBytesLittleEndian()
Checksum128getValueBytesLittleEndian in interface Checksum128public void reset()
reset in interface java.util.zip.ChecksumAvailable under the Apache License, Version 2.0 - Copyright © 2012-2020 greenrobot.org. All Rights Reserved.