| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final String | |
| private final String | |
| private final String | |
| private final String | |
| private final int | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(Candidate o)
Implements java. Compares this object with the specified object for order. |
| public boolean | Returns: the completion flagBoolean indicating whether this candidate is complete or if the completer may further expand the candidate value after this candidate has been selected. |
| public String | Returns: the descriptionDescription of this candidate, usually a small help message to understand the meaning of this candidate. |
| public String | |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public int | |
| public String | |
| public int | |
| public String | |
| public String | |
| public String |
| complete | back to summary |
|---|---|
| private final boolean complete | |
| descr | back to summary |
|---|---|
| private final String descr | |
| displ | back to summary |
|---|---|
| private final String displ | |
| group | back to summary |
|---|---|
| private final String group | |
| key | back to summary |
|---|---|
| private final String key | |
| sort | back to summary |
|---|---|
| private final int sort | |
| suffix | back to summary |
|---|---|
| private final String suffix | |
| value | back to summary |
|---|---|
| private final String value | |
| Candidate | back to summary |
|---|---|
| public Candidate(String value) Simple constructor with only a single String as an argument.
| |
| Candidate | back to summary |
|---|---|
| public Candidate(String value, String displ, String group, String descr, String suffix, String key, boolean complete, int sort) Constructs a new Candidate. | |
| Candidate | back to summary |
|---|---|
| public Candidate(String value, String displ, String group, String descr, String suffix, String key, boolean complete) Constructs a new Candidate. | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Candidate o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| complete | back to summary |
|---|---|
| public boolean complete() Boolean indicating whether this candidate is complete or if the completer may further expand the candidate value after this candidate has been selected. This can be the case when completing folders for example. If the candidate is complete and is selected, a space separator will be added.
| |
| descr | back to summary |
|---|---|
| public String descr() Description of this candidate, usually a small help message to understand the meaning of this candidate. This string may contain ANSI sequences.
| |
| displ | back to summary |
|---|---|
| public String displ() The string that will be displayed to the user. This string may contain ANSI sequences.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| group | back to summary |
|---|---|
| public String group() The group name for this candidate. Candidates can be grouped together and this string is used as a key for the group and displayed to the user.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| key | back to summary |
|---|---|
| public String key() Candidates which have the same key will be merged together. For example, if a command has multiple aliases, they can be merged if they are using the same key.
| |
| sort | back to summary |
|---|---|
| public int sort() Integer used to override default sort logic.
| |
| suffix | back to summary |
|---|---|
| public String suffix() The suffix is added when this candidate is displayed. However, if the next character entered does not match, the suffix will be automatically removed. This string should not contain ANSI sequences.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| value | back to summary |
|---|---|
| public String value() The value that will be used for the actual completion. This string should not contain ANSI sequences.
| |