public interface OptionValues
OptionDescriptor.| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(OptionKey<T> optionKey)
Returns the value of a given option.
|
OptionDescriptors |
getDescriptors()
Returns all available options.
|
boolean |
hasBeenSet(OptionKey<?> optionKey)
Determines if a value for
optionKey has been set explicitly by the Context or
Engine, and therefore OptionValues.get(OptionKey) does not call
OptionKey.getDefaultValue(). |
default boolean |
hasSetOptions()
Determines if a value for any of the option keys in
option
descriptors has been set. |
OptionDescriptors getDescriptors()
<T> T get(OptionKey<T> optionKey)
OptionValues.hasBeenSet(OptionKey) can be used to know
whether the value was explicitly set, or is the default
value.boolean hasBeenSet(OptionKey<?> optionKey)
optionKey has been set explicitly by the Context or
Engine, and therefore OptionValues.get(OptionKey) does not call
OptionKey.getDefaultValue().default boolean hasSetOptions()
option
descriptors has been set.