public class AutoCompletionListItem extends java.lang.Object implements java.lang.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 java.lang.String |
value
the value of this item
|
Constructor and Description |
---|
AutoCompletionListItem()
Constructs a new
AutoCompletionListItem . |
AutoCompletionListItem(java.lang.String value)
Constructs a new
AutoCompletionListItem with the given value and unknown priority. |
AutoCompletionListItem(java.lang.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(java.lang.Object obj) |
AutoCompletionItemPriority |
getPriority()
Returns the priority.
|
java.lang.String |
getValue()
Returns the value.
|
int |
hashCode() |
void |
setPriority(AutoCompletionItemPriority priority)
Sets the priority.
|
void |
setValue(java.lang.String value)
sets the value
|
java.lang.String |
toString() |
private AutoCompletionItemPriority priority
private java.lang.String value
public AutoCompletionListItem(java.lang.String value, AutoCompletionItemPriority priority)
AutoCompletionListItem
with the given value and priority.value
- The valuepriority
- The prioritypublic AutoCompletionListItem(java.lang.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 java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the value; must not be nulljava.lang.IllegalArgumentException
- if value if nullpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(AutoCompletionListItem other)
compareTo
in interface java.lang.Comparable<AutoCompletionListItem>