public class AutoCompletionListItem extends Object implements Comparable<AutoCompletionListItem>
AutoCompletionItemPriority.
The value is a string which will be displayed in the auto completion list.| Modifier and Type | Field and Description |
|---|---|
private AutoCompletionItemPriority |
priority
the pritority of this item
|
private String |
value
the value of this item
|
| Constructor and Description |
|---|
AutoCompletionListItem()
Constructs a new
AutoCompletionListItem. |
AutoCompletionListItem(String value)
Constructs a new
AutoCompletionListItem with the given value and unknown priority. |
AutoCompletionListItem(String value,
AutoCompletionItemPriority priority)
Constructs a new
AutoCompletionListItem with the given value and priority. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AutoCompletionListItem other) |
boolean |
equals(Object obj) |
AutoCompletionItemPriority |
getPriority()
Returns the priority.
|
String |
getValue()
Returns the value.
|
int |
hashCode() |
void |
setPriority(AutoCompletionItemPriority priority)
Sets the priority.
|
void |
setValue(String value)
sets the value
|
String |
toString() |
private AutoCompletionItemPriority priority
public AutoCompletionListItem(String value, AutoCompletionItemPriority priority)
AutoCompletionListItem with the given value and priority.value - The valuepriority - The prioritypublic AutoCompletionListItem(String value)
AutoCompletionListItem with the given value and unknown priority.value - The valuepublic AutoCompletionListItem()
AutoCompletionListItem.public AutoCompletionItemPriority getPriority()
public void setPriority(AutoCompletionItemPriority priority)
priority - the prioritypublic void setValue(String value)
value - the value; must not be nullIllegalArgumentException - if value if nullpublic int compareTo(AutoCompletionListItem other)
compareTo in interface Comparable<AutoCompletionListItem>