Class Hash

  • All Implemented Interfaces:

    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

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

      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)
        equals in class java.lang.Object
      • hashCode

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