Class Hashing.ConcatenatedHashFunction

All Implemented Interfaces:
HashFunction
Enclosing class:
Hashing

private static final class Hashing.ConcatenatedHashFunction extends AbstractCompositeHashFunction
  • Constructor Details

    • ConcatenatedHashFunction

      private ConcatenatedHashFunction(HashFunction... functions)
  • Method Details

    • makeHash

      HashCode makeHash(Hasher[] hashers)
      Description copied from class: AbstractCompositeHashFunction
      Constructs a HashCode from the Hasher objects of the functions. Each of them has consumed the entire input and they are ready to output a HashCode. The order of the hashers are the same order as the functions given to the constructor.
      Specified by:
      makeHash in class AbstractCompositeHashFunction
    • bits

      public int bits()
      Description copied from interface: HashFunction
      Returns the number of bits (a multiple of 32) that each hash code produced by this hash function has.
    • equals

      public boolean equals(@CheckForNull Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object