public class AutoCompletionItem extends java.lang.Object implements java.lang.Comparable<AutoCompletionItem>
AutoCompletionPriority
.
The value is a string which will be displayed in the auto completion list.gui.tagging.ac.AutoCompletionListItem
)Modifier and Type | Field and Description |
---|---|
private AutoCompletionPriority |
priority
the priority of this item
|
private java.lang.String |
value
the value of this item
|
Constructor and Description |
---|
AutoCompletionItem()
Constructs a new
AutoCompletionItem . |
AutoCompletionItem(java.lang.String value)
Constructs a new
AutoCompletionItem with the given value and unknown priority. |
AutoCompletionItem(java.lang.String value,
AutoCompletionPriority priority)
Constructs a new
AutoCompletionItem with the given value and priority. |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AutoCompletionItem other) |
boolean |
equals(java.lang.Object obj) |
AutoCompletionPriority |
getPriority()
Returns the priority.
|
java.lang.String |
getValue()
Returns the value.
|
int |
hashCode() |
void |
setPriority(AutoCompletionPriority priority)
Sets the priority.
|
java.lang.String |
toString() |
private AutoCompletionPriority priority
private final java.lang.String value
public AutoCompletionItem(java.lang.String value, AutoCompletionPriority priority)
AutoCompletionItem
with the given value and priority.value
- The valuepriority
- The prioritypublic AutoCompletionItem(java.lang.String value)
AutoCompletionItem
with the given value and unknown priority.value
- The valuepublic AutoCompletionItem()
AutoCompletionItem
.public AutoCompletionPriority getPriority()
public void setPriority(AutoCompletionPriority priority)
priority
- the prioritypublic java.lang.String getValue()
public 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(AutoCompletionItem other)
compareTo
in interface java.lang.Comparable<AutoCompletionItem>