Class SuggestionPhrase

java.lang.Object
com.broadleafcommerce.search.api.domain.typeahead.SuggestionPhrase

public class SuggestionPhrase extends Object
Represents a single search autocomplete suggestion
  • Constructor Details

    • SuggestionPhrase

      public SuggestionPhrase()
  • Method Details

    • getHighlightedSuggestion

      public String getHighlightedSuggestion()
      A suggested or phrase with highlighting applied. If highlighting is not enabled, this will be the same value as suggestion.
      Returns:
      The highlighted suggestion.
    • getSuggestion

      public String getSuggestion()
      A suggested word or phrase.
      Returns:
      The suggested word or phrase.
    • setHighlightedSuggestion

      public void setHighlightedSuggestion(String highlightedSuggestion)
      A suggested or phrase with highlighting applied. If highlighting is not enabled, this will be the same value as suggestion.
      Parameters:
      highlightedSuggestion - The highlighted suggestion
    • setSuggestion

      public void setSuggestion(String suggestion)
      A suggested word or phrase.
      Parameters:
      suggestion - A suggested word or phrase
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object