Class TermKey

  • All Implemented Interfaces:
    java.io.Serializable

    public class TermKey
    extends java.lang.Object
    implements java.io.Serializable
    This class lets us map source strings to hash table results using different types of rules. For example, we may choose to ignore case or not. This works by having the source, plus a hash code computed based on our desired set of rules.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TermKey()
      For serialization
      TermKey​(java.lang.String originalTerm, int hashCode)  
      TermKey​(java.lang.String originalTerm, java.lang.String adapted)  
    • Constructor Detail

      • TermKey

        public TermKey()
        For serialization
      • TermKey

        public TermKey​(java.lang.String originalTerm,
                       java.lang.String adapted)
      • TermKey

        public TermKey​(java.lang.String originalTerm,
                       int hashCode)
    • Method Detail

      • getSourceTerm

        public java.lang.String getSourceTerm()
      • setSourceTerm

        public void setSourceTerm​(java.lang.String value)
      • getComputedHash

        public int getComputedHash()
      • setComputedHash

        public void setComputedHash​(int value)
      • hashCode

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

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