Class ByteArraySet.Hasher

  • Enclosing class:
    ByteArraySet

    static class ByteArraySet.Hasher
    extends java.lang.Object
    An incremental hash function.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] data  
      private int hash  
      private int length  
      private int pos  
    • Constructor Summary

      Constructors 
      Constructor Description
      Hasher​(byte[] data, int length)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int getHash()  
      (package private) int hash()  
      (package private) boolean hasNext()  
      (package private) void init​(byte[] d, int l)  
      int length()  
      (package private) int nextHash()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • hash

        private int hash
      • pos

        private int pos
      • data

        private byte[] data
      • length

        private int length
    • Constructor Detail

      • Hasher

        Hasher​(byte[] data,
               int length)
    • Method Detail

      • init

        void init​(byte[] d,
                  int l)
      • hash

        int hash()
      • nextHash

        int nextHash()
      • getHash

        int getHash()
      • hasNext

        boolean hasNext()
      • length

        public int length()
      • toString

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