OptionValues
public interface OptionValuesRepresents a set of option values based on an OptionDescriptor.
Methods5
OptionDescriptors getDescriptors()
getDescriptors
since 19.0OptionDescriptors getDescriptors()Returns all available options.
Returns
OptionDescriptors- No description.
void set(OptionKey<T>, T)deprecated
set
defaultsince 19.0@Deprecated(since = "22.0")
default < T> void set(OptionKey< T> optionKey, T value)Deprecated since 22.0
OptionValues should 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 of optionKey to value.
Parameters
optionKeyOptionKey<T> - No description.
valueT- No description.
Throws
UnsupportedOperationExceptionunchecked- because this operation has been deprecated and is no longer supported, in order for OptionValues to be read-only.
T get(OptionKey<T>)
get
since 19.0< T> T get(OptionKey< T> optionKey)Returns the value of a given option. hasBeenSet(OptionKey) can be used to know whether the value was explicitly set, or is the default value.
Parameters
optionKeyOptionKey<T> - No description.
Returns
T- No description.
boolean hasBeenSet(OptionKey<?>)
hasBeenSet
since 19.0boolean hasBeenSet(OptionKey< ?> optionKey)Determines if a value for optionKey has been set explicitly by the Context or Engine, and therefore get(OptionKey) does not call OptionKey.getDefaultValue().
Parameters
optionKeyOptionKey<?> - No description.
Returns
boolean- No description.
boolean hasSetOptions()
hasSetOptions
defaultsince 19.0default boolean hasSetOptions()Determines if a value for any of the option keys in option descriptors has been set.
Returns
boolean- No description.