public final class NonGuavaHashFunctionImpl
extends java.lang.Object
implements com.google.common.hash.HashFunction
NonGuavaHasherImpl
object and the
Checksum
Java interface object. The purpose of this entity is to
serve as an interface between the consuming class that expects an
object of type HashFunction
and the underlying implementation
of type Hasher
. All the hash computation is done in the delegate
object. The main responsibility of this class is the newHasher()
method, that calls the reset()
method on the checksum object
and provides it to the Hasher
ctor.コンストラクタと説明 |
---|
NonGuavaHashFunctionImpl(java.util.zip.Checksum checksum) |
修飾子とタイプ | メソッドと説明 |
---|---|
int |
bits()
Here it is a multiple of 32 bits.
|
com.google.common.hash.HashCode |
hashBytes(byte[] input) |
com.google.common.hash.HashCode |
hashBytes(byte[] input,
int off,
int len) |
com.google.common.hash.HashCode |
hashInt(int input) |
com.google.common.hash.HashCode |
hashLong(long input) |
com.google.common.hash.HashCode |
hashString(java.lang.CharSequence input) |
com.google.common.hash.HashCode |
hashString(java.lang.CharSequence input,
java.nio.charset.Charset charset) |
com.google.common.hash.Hasher |
newHasher() |
com.google.common.hash.Hasher |
newHasher(int expectedInputSize) |
public NonGuavaHashFunctionImpl(java.util.zip.Checksum checksum)
public int bits()
bits
インタフェース内 com.google.common.hash.HashFunction
HashFunction.bits()
public com.google.common.hash.HashCode hashBytes(byte[] input)
hashBytes
インタフェース内 com.google.common.hash.HashFunction
HashFunction.hashBytes(byte[])
public com.google.common.hash.HashCode hashBytes(byte[] input, int off, int len)
hashBytes
インタフェース内 com.google.common.hash.HashFunction
HashFunction.hashBytes(byte[], int, int)
public com.google.common.hash.HashCode hashInt(int input)
hashInt
インタフェース内 com.google.common.hash.HashFunction
HashFunction.hashInt(int)
public com.google.common.hash.HashCode hashLong(long input)
hashLong
インタフェース内 com.google.common.hash.HashFunction
HashFunction.hashLong(long)
public com.google.common.hash.HashCode hashString(java.lang.CharSequence input)
hashString
インタフェース内 com.google.common.hash.HashFunction
HashFunction.hashString(java.lang.CharSequence)
public com.google.common.hash.HashCode hashString(java.lang.CharSequence input, java.nio.charset.Charset charset)
hashString
インタフェース内 com.google.common.hash.HashFunction
HashFunction.hashString(java.lang.CharSequence, java.nio.charset.Charset)
public com.google.common.hash.Hasher newHasher()
newHasher
インタフェース内 com.google.common.hash.HashFunction
HashFunction.newHasher()
public com.google.common.hash.Hasher newHasher(int expectedInputSize)
newHasher
インタフェース内 com.google.common.hash.HashFunction
HashFunction.newHasher(int)