Interface OptionValues
public interface OptionValues
Represents a set of option values based on an
OptionDescriptor.- Since:
- 19.0
-
Method Summary
Modifier and TypeMethodDescription<T> TReturns the value of a given option.Returns all available options.booleanhasBeenSet(OptionKey<?> optionKey) Determines if a value foroptionKeyhas been set explicitly by theContextorEngine, and thereforeget(OptionKey)does not callOptionKey.getDefaultValue().default booleanDetermines if a value for any of the option keys inoption descriptorshas been set.default <T> voidDeprecated.
-
Method Details
-
getDescriptors
-
set
Deprecated.OptionValuesshould be read-only. If the value of an option needs to be altered after options are set, then the new value should be stored in the language's context or instrument fields and read from there.Sets the value ofoptionKeytovalue.- Throws:
UnsupportedOperationException- because this operation has been deprecated and is no longer supported, in order for OptionValues to be read-only.- Since:
- 19.0
-
get
Returns the value of a given option.hasBeenSet(OptionKey)can be used to know whether the value was explicitly set, or is thedefault value.- Since:
- 19.0
-
hasBeenSet
Determines if a value foroptionKeyhas been set explicitly by theContextorEngine, and thereforeget(OptionKey)does not callOptionKey.getDefaultValue().- Since:
- 19.0
-
hasSetOptions
default boolean hasSetOptions()Determines if a value for any of the option keys inoption descriptorshas been set.- Since:
- 19.0
-
OptionValuesshould be read-only.