public interface OptionDescriptors extends Iterable<OptionDescriptor>
OptionDescriptor
s.Modifier and Type | Field and Description |
---|---|
static OptionDescriptors |
EMPTY
An empty set of option descriptors.
|
Modifier and Type | Method and Description |
---|---|
static OptionDescriptors |
create(List<OptionDescriptor> descriptors)
Creates an
OptionDescriptors instance from a list. |
static OptionDescriptors |
createUnion(OptionDescriptors... descriptors)
Creates a union options descriptor out of multiple given descriptors.
|
OptionDescriptor |
get(String optionName)
Gets the
OptionDescriptor matching a given option name or null if this option
descriptor set does not contain a matching option name. |
Iterator<OptionDescriptor> |
iterator() |
forEach, spliterator
static final OptionDescriptors EMPTY
OptionDescriptor get(String optionName)
OptionDescriptor
matching a given option name or null
if this option
descriptor set does not contain a matching option name.static OptionDescriptors createUnion(OptionDescriptors... descriptors)
Iterator<OptionDescriptor> iterator()
iterator
in interface Iterable<OptionDescriptor>
static OptionDescriptors create(List<OptionDescriptor> descriptors)
OptionDescriptors
instance from a list. The option descriptors
implementation is backed by a LinkedHashMap
that preserves ordering.