public class DefaultSuggestion extends Object implements Suggestion
| Constructor and Description |
|---|
DefaultSuggestion(String label) |
DefaultSuggestion(String label,
int indentation) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Suggestion that) |
boolean |
equals(Object o) |
String |
getDescription() |
int |
getIndentation()
If there are siblings to the current auto-complete context
the right indentation value is returned, otherwise -1
|
String |
getLabel() |
String |
getValue() |
int |
hashCode() |
void |
setIndentation(int indentation)
sets the right indentation for the suggestion
|
String |
toString() |
public DefaultSuggestion(String label)
public DefaultSuggestion(String label, int indentation)
public String getLabel()
getLabel in interface Suggestionpublic String getDescription()
getDescription in interface Suggestionpublic String getValue()
getValue in interface Suggestionpublic int getIndentation()
SuggestiongetIndentation in interface Suggestionpublic void setIndentation(int indentation)
SuggestionsetIndentation in interface Suggestionpublic int compareTo(Suggestion that)
compareTo in interface Comparable<Suggestion>Copyright © 2020. All rights reserved.