Package org.greenrobot.essentials.hash
Class FNV32
java.lang.Object
org.greenrobot.essentials.hash.FNV32
- All Implemented Interfaces:
Checksum
Hash function FNV-1a (http://www.isthe.com/chongo/tech/comp/fnv).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static final int
private static final int
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INITIAL_VALUE
private static final int INITIAL_VALUE- See Also:
-
MULTIPLIER
private static final int MULTIPLIER- See Also:
-
hash
private int hash
-
-
Constructor Details
-
FNV32
public FNV32()
-
-
Method Details
-
update
public void update(int b) -
update
public void update(byte[] b, int off, int len) -
getValue
public long getValue() -
reset
public void reset()
-