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 anAutocompleteResult.- Since:
- 5.9
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAutocompleteResultItem.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutocompleteResultItem.Builderbuilder()StringgetId()Returns the item "id" or "key" that will be passed around programmatically if this item is selected by a user in the UI.StringgetText()Returns the string representation of this item that the user will see in the UI.
-
-
-
Method Detail
-
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 enclosingAutocompleteResult.- 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
-
-