Class Hashing

java.lang.Object
com.google.common.collect.Hashing

final class Hashing extends Object
Static methods for implementing hash-based collections.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final long
     
    private static final long
     
    private static final int
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    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
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Hashing

      private Hashing()
  • Method Details

    • smear

      static int smear(int hashCode)
    • smearedHash

      static int smearedHash(@CheckForNull Object o)
    • closedTableSize

      static int closedTableSize(int expectedEntries, double loadFactor)
    • needsResizing

      static boolean needsResizing(int size, int tableSize, double loadFactor)