Package com.google.common.collect
Class Hashing
- java.lang.Object
-
- com.google.common.collect.Hashing
-
@GwtCompatible final class Hashing extends java.lang.Object
Static methods for implementing hash-based collections.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
C1
private static int
C2
private static int
MAX_TABLE_SIZE
-
Constructor Summary
Constructors Modifier Constructor Description private
Hashing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static int
closedTableSize(int expectedEntries, double loadFactor)
(package private) static boolean
needsResizing(int size, int tableSize, double loadFactor)
(package private) static int
smear(int hashCode)
(package private) static int
smearedHash(java.lang.Object o)
-
-
-
Field Detail
-
C1
private static final int C1
- See Also:
- Constant Field Values
-
C2
private static final int C2
- See Also:
- Constant Field Values
-
MAX_TABLE_SIZE
private static final int MAX_TABLE_SIZE
- See Also:
- Constant Field Values
-
-