private final class ChecksumHashFunction.ChecksumHasher extends AbstractByteHasher
| Modifier and Type | Field and Description |
|---|---|
private java.util.zip.Checksum |
checksum |
| Modifier | Constructor and Description |
|---|---|
private |
ChecksumHasher(java.util.zip.Checksum checksum) |
| Modifier and Type | Method and Description |
|---|---|
HashCode |
hash()
Computes a hash code based on the data that have been provided to this hasher.
|
protected void |
update(byte b)
Updates this hasher with the given byte.
|
protected void |
update(byte[] bytes,
int off,
int len)
Updates this hasher with
len bytes starting at off in the given buffer. |
putByte, putBytes, putBytes, putBytes, putChar, putInt, putLong, putShort, update, updateputBoolean, putDouble, putFloat, putObject, putString, putUnencodedCharsprotected void update(byte b)
AbstractByteHasherupdate in class AbstractByteHasherprotected void update(byte[] bytes,
int off,
int len)
AbstractByteHasherlen bytes starting at off in the given buffer.update in class AbstractByteHasher