Class SuggestionPhrase
- java.lang.Object
-
- com.broadleafcommerce.search.api.domain.typeahead.SuggestionPhrase
-
public class SuggestionPhrase extends Object
Represents a single search autocomplete suggestion
-
-
Constructor Summary
Constructors Constructor Description SuggestionPhrase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getHighlightedSuggestion()
A suggested or phrase with highlighting applied.String
getSuggestion()
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.String
toString()
-
-
-
Method Detail
-
getHighlightedSuggestion
public String 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
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 assuggestion
.- Parameters:
highlightedSuggestion
- The highlighted suggestion
-
setSuggestion
public void setSuggestion(String suggestion)
A suggested word or phrase.- Parameters:
suggestion
- A suggested word or phrase
-
canEqual
protected boolean canEqual(Object other)
-
-