O - the recursive type definition for the implementing option, usually
an enumpublic interface OptionSet<O extends Option> extends Iterable<O>
| Modifier and Type | Method and Description |
|---|---|
Set<O> |
asSet()
Returns the active options in a
Set. |
boolean |
isSet(O option)
Returns true if the specified
option is set and false otherwise |
Iterator<O> |
iterator()
Returns an iterator over the active options in this option set.
|
Class<O> |
optionType()
Returns the option type class, usually an enum.
|
int |
size()
Returns the number of active options in this option set.
|
boolean |
useAcronymFor(O option)
Returns true if the
acronym should be used in
for the specified option string representations. |
forEach, spliteratorClass<O> optionType()
boolean isSet(O option)
option is set and false otherwiseoption - the option to testoption is set in this OptionSetSet<O> asSet()
Set. It depends on the
implementation whether the returned set is modifiable or not.Iterator<O> iterator()
It depends on the implementation whether the returned iterator is
modifiable or not, that is, whether it supports the remove()
method.
int size()
boolean useAcronymFor(O option)
acronym should be used in
for the specified option string representations. Note that some
implementations may return the same value for all options.option - the option of interestoptionCopyright © 2025. All rights reserved.