Package org.greenrobot.essentials.hash
Class Murmur3A
java.lang.Object
org.greenrobot.essentials.hash.Murmur3A
- All Implemented Interfaces:
Checksum
Murmur3A (murmurhash3_x86_32)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
private int
private int
private int
private int
private static PrimitiveArrayUtils
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
applyK1
(int k1) long
getValue()
void
reset()
void
update
(byte[] b) void
update
(byte[] b, int off, int len) void
update
(int b) void
updateBoolean
(boolean value) updates a byte with 0 for false and 1 for truevoid
updateDouble
(double number) void
updateFloat
(float number) void
updateInt
(int value) void
updateInt
(int... values) void
updateLong
(long value) void
updateLong
(long... values) void
updateShort
(short value) void
updateShort
(short... values)
-
Field Details
-
primitiveArrayUtils
-
C1
private static final int C1- See Also:
-
C2
private static final int C2- See Also:
-
seed
private final int seed -
h1
private int h1 -
length
private int length -
partialK1
private int partialK1 -
partialK1Pos
private int partialK1Pos
-
-
Constructor Details
-
Murmur3A
public Murmur3A() -
Murmur3A
public Murmur3A(int seed)
-
-
Method Details
-
update
public void update(int b) -
update
public void update(byte[] b, int off, int len) -
update
public void update(byte[] b) -
updateShort
public void updateShort(short value) -
updateShort
public void updateShort(short... values) -
updateInt
public void updateInt(int value) -
updateInt
public void updateInt(int... values) -
updateLong
public void updateLong(long value) -
updateLong
public void updateLong(long... values) -
updateFloat
public void updateFloat(float number) -
updateDouble
public void updateDouble(double number) -
updateBoolean
public void updateBoolean(boolean value) updates a byte with 0 for false and 1 for true -
applyK1
private void applyK1(int k1) -
getValue
public long getValue() -
reset
public void reset()
-