Class TypeAheadResponse


  • public class TypeAheadResponse
    extends Object
    • Constructor Detail

      • TypeAheadResponse

        public TypeAheadResponse()
    • Method Detail

      • getKeyWords

        public LinkedHashSet<SuggestionPhrase> getKeyWords()
        The keywords associated with this response. These are the text predictions shown to the user.
        Returns:
        keywords associated with this response
      • getSuggestions

        public Map<String,​List<Map<String,​Object>>> getSuggestions()
        A map of suggestions, with the key being the name of the origin of the suggestion. For example, it may be manufacturer, name, title, etc.
        Returns:
        map of suggestions
      • getDebug

        @Nullable
        public String getDebug()
        The raw query response for debugging purposes.
        Returns:
        raw query response
      • setKeyWords

        public void setKeyWords​(LinkedHashSet<SuggestionPhrase> keyWords)
        The keywords associated with this response. These are the text predictions shown to the user.
        Parameters:
        keyWords - keywords associated with this response
      • setSuggestions

        public void setSuggestions​(Map<String,​List<Map<String,​Object>>> suggestions)
        A map of suggestions, with the key being the name of the origin of the suggestion. For example, it may be manufacturer, name, title, etc.
        Parameters:
        suggestions - map of suggestions
      • setDebug

        public void setDebug​(@Nullable
                             String debug)
        The raw query response for debugging purposes.
        Parameters:
        debug - raw query response
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object