Class Murmur3_128HashFunction

    • Field Detail

      • GOOD_FAST_HASH_128

        static final HashFunction GOOD_FAST_HASH_128
      • seed

        private final int seed
    • Constructor Detail

      • Murmur3_128HashFunction

        Murmur3_128HashFunction​(int seed)
    • Method Detail

      • 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.
        Specified by:
        bits in interface HashFunction
      • newHasher

        public Hasher newHasher()
        Description copied from interface: HashFunction
        Begins a new hash code computation by returning an initialized, stateful Hasher instance that is ready to receive data. Example:
        
         HashFunction hf = Hashing.md5();
         HashCode hc = hf.newHasher()
             .putLong(id)
             .putBoolean(isActive)
             .hash();
         
        Specified by:
        newHasher in interface HashFunction
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(@CheckForNull
                              java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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