public class DefaultSuggestion extends Object implements Suggestion, Comparable<Suggestion>
| Modifier and Type | Field and Description |
|---|---|
static String |
RAML_1_0_HEADER |
| Constructor and Description |
|---|
DefaultSuggestion(String value,
String description,
String label) |
DefaultSuggestion(String value,
String description,
String label,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Suggestion other) |
String |
getDescription() |
String |
getLabel() |
String |
getPrefix() |
String |
getValue() |
String |
toString() |
Suggestion |
withDescription(String description)
Creates a new Suggestion based on this suggestion but changing the description with the specified
|
Suggestion |
withPrefix(String prefix)
Creates a new Suggestion based on this but changing the prefix
|
Suggestion |
withValue(String value)
Creates a new Suggestion based on this suggestion but changing the value with the specified
|
public static final String RAML_1_0_HEADER
public String getPrefix()
getPrefix in interface Suggestionpublic String getLabel()
getLabel in interface Suggestionpublic String getDescription()
getDescription in interface Suggestionpublic String getValue()
getValue in interface Suggestionpublic Suggestion withDescription(String description)
SuggestionwithDescription in interface Suggestiondescription - The new descriptionpublic Suggestion withValue(String value)
SuggestionwithValue in interface Suggestionvalue - The new valuepublic Suggestion withPrefix(String prefix)
SuggestionwithPrefix in interface Suggestionprefix - The prefixpublic int compareTo(Suggestion other)
compareTo in interface Comparable<Suggestion>Copyright © 2016. All rights reserved.