Class SuggestionPhrase
java.lang.Object
com.broadleafcommerce.search.api.domain.typeahead.SuggestionPhrase
Represents a single search autocomplete suggestion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
A suggested or phrase with highlighting applied.A suggested word or phrase.int
hashCode()
void
setHighlightedSuggestion
(String highlightedSuggestion) A suggested or phrase with highlighting applied.void
setSuggestion
(String suggestion) A suggested word or phrase.toString()
-
Constructor Details
-
SuggestionPhrase
public SuggestionPhrase()
-
-
Method Details
-
getHighlightedSuggestion
A suggested or phrase with highlighting applied. If highlighting is not enabled, this will be the same value assuggestion
.- Returns:
- The highlighted suggestion.
-
getSuggestion
A suggested word or phrase.- Returns:
- The suggested word or phrase.
-
setHighlightedSuggestion
A suggested or phrase with highlighting applied. If highlighting is not enabled, this will be the same value assuggestion
.- Parameters:
highlightedSuggestion
- The highlighted suggestion
-
setSuggestion
A suggested word or phrase.- Parameters:
suggestion
- A suggested word or phrase
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-