T
- The type that determines the type of the default value and the allowed values of the option.public class Option<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Option.ButtonOption
A button option which only has a name and serves as a parameterless command.
|
static class |
Option.CheckOption
A check option subclassing Setting with a Boolean type parameter.
|
static class |
Option.ComboOption
A combo option with a set of allowed values subclassing Setting with a String type parameter.
|
static class |
Option.SpinOption
A spin option with minimum and maximum values subclassing Setting with an Integer type parameter.
|
static class |
Option.StringOption
A simple string option subclassing Setting with a String type parameter.
|
Modifier and Type | Method and Description |
---|---|
Optional<Set<T>> |
getAllowedValues()
Returns an optional set of values a
Option.ComboOption can possibly take on. |
Optional<T> |
getDefaultValue()
Returns the optional default value of the setting.
|
Optional<Integer> |
getMax()
Returns the optional maximum value for the setting.
|
Optional<Integer> |
getMin()
Returns the optional minimum value for the setting.
|
String |
getName()
Returns the name ID of the setting.
|
public String getName()
public Optional<T> getDefaultValue()
Option.ButtonOption
, it is never
present; for all other option types, it is always present.public Optional<Set<T>> getAllowedValues()
Option.ComboOption
can possibly take on. For all other
option types, it is never present.public Optional<Integer> getMin()
Option.SpinOption
,
it is never present.public Optional<Integer> getMax()
Option.SpinOption
,
it is never present.Copyright © 2020. All rights reserved.