Class FNV32

  • All Implemented Interfaces:
    java.util.zip.Checksum

    public class FNV32
    extends java.lang.Object
    implements java.util.zip.Checksum
    Hash function FNV-1a (http://www.isthe.com/chongo/tech/comp/fnv).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int hash  
      private static int INITIAL_VALUE  
      private static int MULTIPLIER  
    • Constructor Summary

      Constructors 
      Constructor Description
      FNV32()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getValue()  
      void reset()  
      void update​(byte[] b, int off, int len)  
      void update​(int b)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.zip.Checksum

        update, update
    • Constructor Detail

      • FNV32

        public FNV32()
    • Method Detail

      • update

        public void update​(int b)
        Specified by:
        update in interface java.util.zip.Checksum
      • update

        public void update​(byte[] b,
                           int off,
                           int len)
        Specified by:
        update in interface java.util.zip.Checksum
      • getValue

        public long getValue()
        Specified by:
        getValue in interface java.util.zip.Checksum
      • reset

        public void reset()
        Specified by:
        reset in interface java.util.zip.Checksum