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 
      ChangeModifier and Type Field Description
      static int ALTERNATE_SEED  
      static int SEED  
      NEWprotected int size  
      NEWprotected int value  
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      ChangeModifier 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

  • 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