Class AutocompleteResultItem


  • @ExperimentalApi
    public class AutocompleteResultItem
    extends Object
    Represents the internal and displayed state of a single autocomplete result in an AutocompleteResult.
    Since:
    5.9
    • Method Detail

      • getId

        public String getId()
        Returns the item "id" or "key" that will be passed around programmatically if this item is selected by a user in the UI. It is expected to be unique in the enclosing AutocompleteResult.
        Returns:
        the internal value of the item
      • getText

        public String getText()
        Returns the string representation of this item that the user will see in the UI.
        Returns:
        the displayable value of the item