public enum WcOptionSet_lmw extends Enum<WcOptionSet_lmw> implements WcOptions
WcOptions.Default| Enum Constant and Description |
|---|
Active_l
Option set with the following active options:
l. |
Active_l_long
Option set with the following active options:
l. |
Active_lm
|
Active_lm_long
|
Active_lmw
|
Active_lmw_long
|
Active_lw
|
Active_lw_long
|
Active_m
Option set with the following active options:
m. |
Active_m_long
Option set with the following active options:
m. |
Active_mw
|
Active_mw_long
|
Active_w
Option set with the following active options:
w. |
Active_w_long
Option set with the following active options:
w. |
| Modifier and Type | Field and Description |
|---|---|
WcOptionSet_lmw |
chars
Option
"--chars": Executes a count of chars and writes this count to the output. |
WcOptionSet_lmw |
l
Option
"-l": Executes a count of lines and writes this count to the output. |
WcOptionSet_lmw |
lines
Option
"--lines": Executes a count of lines and writes this count to the output. |
WcOptionSet_lmw |
m
Option
"-m": Executes a count of chars and writes this count to the output. |
WcOptionSet_lmw |
w
Option
"-w": Executes a count of words and writes this count to the output. |
WcOptionSet_lmw |
words
Option
"--words": Executes a count of words and writes this count to the output. |
| Modifier and Type | Method and Description |
|---|---|
EnumSet<WcOption> |
asSet()
Returns the set with the active options.
|
boolean |
isSet(WcOption option)
Returns true if the specified
option is set and false otherwise |
Iterator<WcOption> |
iterator()
Returns an immutable iterator with the active options of this option set.
|
Class<WcOption> |
optionType()
Returns the option type class, usually an enum.
|
int |
size()
Returns the number of active options in this option set.
|
boolean |
useAcronymFor(WcOption option)
Returns true if the
acronym should be used in
for the specified option string representations. |
static WcOptionSet_lmw |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WcOptionSet_lmw[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfforEach, spliteratorpublic static final WcOptionSet_lmw Active_lmw
public static final WcOptionSet_lmw Active_lmw_long
public static final WcOptionSet_lmw Active_lw
public static final WcOptionSet_lmw Active_lw_long
public static final WcOptionSet_lmw Active_lm
public static final WcOptionSet_lmw Active_lm_long
public static final WcOptionSet_lmw Active_mw
public static final WcOptionSet_lmw Active_mw_long
public static final WcOptionSet_lmw Active_l
l.public static final WcOptionSet_lmw Active_l_long
l.public static final WcOptionSet_lmw Active_w
w.public static final WcOptionSet_lmw Active_w_long
w.public static final WcOptionSet_lmw Active_m
m.public static final WcOptionSet_lmw Active_m_long
m.public final WcOptionSet_lmw m
"-m": Executes a count of chars and writes this count to the output.
The option "-m" is equivalent to the "--chars" option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-m". If the option "-m"
is already set, the field m points to the enum constant itself
as it already represents the current set of options.
public final WcOptionSet_lmw chars
"--chars": Executes a count of chars and writes this count to the output.
The option "--chars" is equivalent to the "-m" option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--chars". If the option "--chars"
is already set, the field chars points to the enum constant itself
as it already represents the current set of options.
public final WcOptionSet_lmw l
"-l": Executes a count of lines and writes this count to the output.
The option "-l" is equivalent to the "--lines" option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-l". If the option "-l"
is already set, the field l points to the enum constant itself
as it already represents the current set of options.
public final WcOptionSet_lmw lines
"--lines": Executes a count of lines and writes this count to the output.
The option "--lines" is equivalent to the "-l" option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--lines". If the option "--lines"
is already set, the field lines points to the enum constant itself
as it already represents the current set of options.
public final WcOptionSet_lmw w
"-w": Executes a count of words and writes this count to the output. A
word is a non-zero-length string of characters delimited by white
space as defined by Character.isWhitespace(char).
The option "-w" is equivalent to the "--words" option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-w". If the option "-w"
is already set, the field w points to the enum constant itself
as it already represents the current set of options.
public final WcOptionSet_lmw words
"--words": Executes a count of words and writes this count to the output. A
word is a non-zero-length string of characters delimited by white
space as defined by Character.isWhitespace(char).
The option "--words" is equivalent to the "-w" option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--words". If the option "--words"
is already set, the field words points to the enum constant itself
as it already represents the current set of options.
public static WcOptionSet_lmw[] values()
for (WcOptionSet_lmw c : WcOptionSet_lmw.values()) System.out.println(c);
public static WcOptionSet_lmw valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic Class<WcOption> optionType()
OptionSetoptionType in interface OptionSet<WcOption>public boolean isSet(WcOption option)
OptionSetoption is set and false otherwisepublic int size()
OptionSetpublic EnumSet<WcOption> asSet()
this option set.public Iterator<WcOption> iterator()
public boolean useAcronymFor(WcOption option)
acronym should be used in
for the specified option string representations.
In particular and independent from the option argument, this
option set returns true if the last option added to this set was an
acronym, and false if it was a long option name.
For instance, the set defined as
WcOptionSet_lmw.chars.l;
uses acronyms, that is, this method always returns true for the above
set.
On the other hand, long option names are used and this method always returns false for the set
WcOptionSet_lmw.m.lines;
Note that a repeated option is not treated as the last set option. For instance, the first and last option of the following set are equivalent and acronyms are used:
WcOptionSet_lmw.m.l.chars;
This method always returns true for the empty set with no active options.
useAcronymFor in interface OptionSet<WcOption>option - the option of interest, has no impact on the result returned
by this methodCopyright © 2025. All rights reserved.