T
- Represented value typepublic interface ChoiceValueParameterParser<T>
Modifier and Type | Method and Description |
---|---|
T |
fromString(String value)
Parse value from String.
|
Class<T> |
getParameterClass()
Class of underlying parameter.
|
ChoiceParameterType |
getType()
Value type.
|
Optional<Double> |
maxDouble()
Maximal valid value (inclusive).
|
Optional<Long> |
maxLong()
Maximal valid value (inclusive).
|
Optional<Double> |
minDouble()
Minimal valid value (inclusive).
|
Optional<Long> |
minLong()
Minimal valid value (inclusive).
|
String |
toString(T value)
Convert value to String representation.
|
Optional<List<String>> |
valueDescriptions()
Description of accepted values.
|
Optional<List<String>> |
values()
Accepted values.
|
T fromString(String value)
value
- Value to parseString toString(T value)
value
- Value to convertChoiceParameterType getType()
Optional<Double> minDouble()
Optional<Double> maxDouble()
Optional<Long> minLong()
Optional<Long> maxLong()
Optional<List<String>> values()
Optional<List<String>> valueDescriptions()