Class Suggestion


  • public class Suggestion
    extends Object
    Represent a suggestion.

    If the SUGGET command is executed with the WITHSCORES parameter, the suggestion also contains the score. 0.0 otherwise.

    • Constructor Detail

      • Suggestion

        public Suggestion​(String suggestion,
                          double score)
      • Suggestion

        public Suggestion​(String suggestion)
    • Method Detail

      • suggestion

        public String suggestion()
        Returns:
        the suggestion
      • score

        public double score()
        Returns:
        the score, 0.0 is not available.