Class AutocompleteResultItem

java.lang.Object
com.atlassian.confluence.api.model.search.autocomplete.AutocompleteResultItem

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

    • builder

      public static AutocompleteResultItem.Builder builder()
    • 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
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object