public final class Hash64 extends Object
This class is an internal implementation detail only intended for use within spectator. It is subject to change without notice.
Constructor and Description |
---|
Hash64()
Create a new instance with a seed of zero.
|
Hash64(long seed)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
long |
compute()
Compute and return the final hash value.
|
long |
computeAndReset()
Compute the final hash value and reset the hash accumulator.
|
void |
reset()
Reset so it can be reused for computing another hash.
|
Hash64 |
updateBoolean(boolean value)
Update the hash with the specified boolean value.
|
Hash64 |
updateBooleans(boolean[] values)
Update the hash with the specified boolean values.
|
Hash64 |
updateBooleans(boolean[] values,
int offset,
int length)
Update the hash with the specified boolean values.
|
Hash64 |
updateByte(byte value)
Update the hash with the specified byte value.
|
Hash64 |
updateBytes(byte[] values)
Update the hash with the specified byte values.
|
Hash64 |
updateBytes(byte[] values,
int offset,
int length)
Update the hash with the specified byte values.
|
Hash64 |
updateChar(char value)
Update the hash with the specified character value.
|
Hash64 |
updateChars(char[] values)
Update the hash with the specified character values.
|
Hash64 |
updateChars(char[] values,
int offset,
int length)
Update the hash with the specified character values.
|
Hash64 |
updateDouble(double value)
Update the hash with the specified double value.
|
Hash64 |
updateDoubles(double[] values)
Update the hash with the specified double values.
|
Hash64 |
updateDoubles(double[] values,
int offset,
int length)
Update the hash with the specified double values.
|
Hash64 |
updateFloat(float value)
Update the hash with the specified float value.
|
Hash64 |
updateFloats(float[] values)
Update the hash with the specified float values.
|
Hash64 |
updateFloats(float[] values,
int offset,
int length)
Update the hash with the specified float values.
|
Hash64 |
updateInt(int value)
Update the hash with the specified int value.
|
Hash64 |
updateInts(int[] values)
Update the hash with the specified int values.
|
Hash64 |
updateInts(int[] values,
int offset,
int length)
Update the hash with the specified int values.
|
Hash64 |
updateLong(long value)
Update the hash with the specified long value.
|
Hash64 |
updateLongs(long[] values)
Update the hash with the specified long values.
|
Hash64 |
updateLongs(long[] values,
int offset,
int length)
Update the hash with the specified long values.
|
Hash64 |
updateShort(short value)
Update the hash with the specified short value.
|
Hash64 |
updateShorts(short[] values)
Update the hash with the specified short values.
|
Hash64 |
updateShorts(short[] values,
int offset,
int length)
Update the hash with the specified short values.
|
Hash64 |
updateString(CharSequence str)
Update the hash with the specified character sequence value.
|
public Hash64()
public Hash64(long seed)
public void reset()
public Hash64 updateBoolean(boolean value)
public Hash64 updateBooleans(boolean[] values, int offset, int length)
public Hash64 updateBooleans(boolean[] values)
public Hash64 updateChar(char value)
public Hash64 updateChars(char[] values, int offset, int length)
public Hash64 updateChars(char[] values)
public Hash64 updateString(CharSequence str)
public Hash64 updateByte(byte value)
public Hash64 updateBytes(byte[] values, int offset, int length)
public Hash64 updateBytes(byte[] values)
public Hash64 updateShort(short value)
public Hash64 updateShorts(short[] values, int offset, int length)
public Hash64 updateShorts(short[] values)
public Hash64 updateInt(int value)
public Hash64 updateInts(int[] values, int offset, int length)
public Hash64 updateInts(int[] values)
public Hash64 updateLong(long value)
public Hash64 updateLongs(long[] values, int offset, int length)
public Hash64 updateLongs(long[] values)
public Hash64 updateFloat(float value)
public Hash64 updateFloats(float[] values, int offset, int length)
public Hash64 updateFloats(float[] values)
public Hash64 updateDouble(double value)
public Hash64 updateDoubles(double[] values, int offset, int length)
public Hash64 updateDoubles(double[] values)
public long compute()
public long computeAndReset()