Java com.google.common.hash HashFunction fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.hash HashFunction fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.hash HashFunction.

The text is from its open source code.

Implementation

com.google.common.hash.HashFunction has the following implementations.
Click this link to see all its implementation.

Method

intbits()
Returns the number of bits (a multiple of 32) that each hash code produced by this hash function has.
HashCodehashBytes(byte[] input)
Shortcut for newHasher().putBytes(input).hash() .
HashCodehashBytes(byte[] input, int off, int len)
Shortcut for newHasher().putBytes(input, off, len).hash() .
HashCodehashInt(int input)
Shortcut for newHasher().putInt(input).hash() ; returns the hash code for the given int value, interpreted in little-endian byte order.
HashCodehashObject(T instance, Funnel funnel)
Shortcut for newHasher().putObject(instance, funnel).hash() .
HashCodehashString(CharSequence input, Charset charset)
Shortcut for newHasher().putString(input, charset).hash() .
HashCodehashUnencodedChars(CharSequence input)
Shortcut for newHasher().putUnencodedChars(input).hash() .
HashernewHasher()
Begins a new hash code computation by returning an initialized, stateful Hasher instance that is ready to receive data.
HashernewHasher(int expectedInputSize)
Begins a new hash code computation as #newHasher() , but provides a hint of the expected size of the input (in bytes).