Class Suggest.Suggestion.Entry.Option

    • Constructor Detail

      • Option

        public Option​(Text text,
                      Text highlighted,
                      float score,
                      java.lang.Boolean collateMatch)
      • Option

        public Option​(Text text,
                      Text highlighted,
                      float score)
      • Option

        public Option​(Text text,
                      float score)
      • Option

        public Option()
    • Method Detail

      • getText

        public Text getText()
        Returns:
        The actual suggested text.
      • getHighlighted

        public Text getHighlighted()
        Returns:
        Copy of suggested text with changes from user supplied text highlighted.
      • getScore

        public float getScore()
        Returns:
        The score based on the edit distance difference between the suggested term and the term in the suggest text.
      • collateMatch

        public boolean collateMatch()
        Returns:
        true if collation has found a match for the entry. if collate was not set, the value defaults to true
      • setScore

        protected void setScore​(float score)
      • equals

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

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