Class DirectCandidateGenerator.Candidate

    • Constructor Summary

      Constructors 
      Constructor Description
      Candidate​(org.apache.lucene.util.BytesRef term, long frequency, double stringDistance, double score, boolean userInput)  
    • Method Summary

      Modifier and Type Method Description
      int compareTo​(DirectCandidateGenerator.Candidate other)
      Lower scores sort first; if scores are equal, then later (zzz) terms sort first
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • term

        public final org.apache.lucene.util.BytesRef term
      • stringDistance

        public final double stringDistance
      • frequency

        public final long frequency
      • score

        public final double score
      • userInput

        public final boolean userInput
    • Constructor Detail

      • Candidate

        public Candidate​(org.apache.lucene.util.BytesRef term,
                         long frequency,
                         double stringDistance,
                         double score,
                         boolean userInput)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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