Class Hash

  • All Implemented Interfaces:
    java.lang.Comparable<Hash>

    public class Hash
    extends java.lang.Object
    implements java.lang.Comparable<Hash>
    This encodes the main hash value for an n-gram, and the number of Instructions hashed
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALTERNATE_SEED  
      static int SEED  
      protected int size  
      protected int value  
    • Constructor Summary

      Constructors 
      Constructor Description
      Hash​(int val, int sz)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(Hash o)  
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Hash

        public Hash​(int val,
                    int sz)
    • Method Detail

      • compareTo

        public int compareTo​(Hash o)
        Specified by:
        compareTo in interface java.lang.Comparable<Hash>
      • equals

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

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