Class Hashing.ConcatenatedHashFunction

    • Constructor Detail

      • ConcatenatedHashFunction

        private ConcatenatedHashFunction​(HashFunction... functions)
    • Method Detail

      • 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​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object