Package | Description |
---|---|
com.google.common.hash |
Hash functions and related structures.
|
com.google.common.io |
This package contains utility methods and classes for working with Java I/O; for example input
streams, output streams, readers, writers, and files.
|
Class and Description |
---|
AbstractByteHasher
Abstract
Hasher that handles converting primitives to bytes using a scratch ByteBuffer and streams all bytes to a sink to compute the hash. |
AbstractCompositeHashFunction
An abstract composition of multiple hash functions.
|
AbstractHasher
An abstract implementation of
Hasher , which only requires subtypes to implement Hasher.putByte(byte) . |
AbstractHashFunction
Skeleton implementation of
HashFunction in terms of HashFunction.newHasher() . |
AbstractNonStreamingHashFunction
Skeleton implementation of
HashFunction , appropriate for non-streaming algorithms. |
AbstractNonStreamingHashFunction.ExposedByteArrayOutputStream |
AbstractStreamingHasher
A convenience base class for implementors of
Hasher ; handles accumulating data until an
entire "chunk" (of implementation-dependent length) is ready to be hashed. |
BloomFilter
A Bloom filter for instances of
T . |
BloomFilter.Strategy
A strategy to translate T instances, to
numHashFunctions bit indexes. |
BloomFilterStrategies
Collections of strategies of generating the k * log(M) bits required for an element to be mapped
to a BloomFilter of M bits and k hash functions.
|
BloomFilterStrategies.LockFreeBitArray
Models a lock-free array of bits.
|
ElementTypesAreNonnullByDefault
Marks all "top-level" types as non-null in a way that is recognized by Kotlin.
|
Funnel
An object which can send data from an object of type
T into a PrimitiveSink . |
Funnels.ByteArrayFunnel |
Funnels.IntegerFunnel |
Funnels.LongFunnel |
Funnels.UnencodedCharsFunnel |
HashCode
An immutable hash code of arbitrary bit length.
|
Hasher
A
PrimitiveSink that can compute a hash code after reading the input. |
HashFunction
A hash function is a collision-averse pure function that maps an arbitrary block of data to a
number called a hash code.
|
Hashing.ChecksumType |
ImmutableSupplier
Explicitly named subinterface of
Supplier that can be marked @Immutable . |
LittleEndianByteArray.JavaLittleEndianBytes
Fallback implementation for when Unsafe is not available in our current environment.
|
LittleEndianByteArray.LittleEndianBytes
Common interface for retrieving a 64-bit long from a little-endian byte array.
|
LittleEndianByteArray.UnsafeByteArray
The only reference to Unsafe is in this nested class.
|
LongAddable
Abstract interface for objects that can concurrently add longs.
|
ParametricNullness
Marks a "top-level" type-variable usage as the closest we can get to "non-nullable when
non-nullable; nullable when nullable" (like the Android
NullFromTypeParam ). |
PrimitiveSink
An object which can receive a stream of primitive values.
|
Striped64
A package-local class holding common representation and mechanics for classes supporting dynamic
striping on 64bit values.
|
Striped64.Cell
Padded variant of AtomicLong supporting only raw accesses plus CAS.
|
Class and Description |
---|
HashCode
An immutable hash code of arbitrary bit length.
|
HashFunction
A hash function is a collision-averse pure function that maps an arbitrary block of data to a
number called a hash code.
|