public enum SortOptionSet_bcdfmnru extends Enum<SortOptionSet_bcdfmnru> implements SortOptions
SortOptions.Default
Modifier and Type | Field and Description |
---|---|
SortOptionSet_bcdfmnru |
b
Option
"-b" : Ignore leading blanks. |
SortOptionSet_bcdfnru |
c
Option
"-c" : Checks that the single input file is ordered as specified by the
arguments and the collating sequence of the current locale. |
SortOptionSet_bcdfnru |
check
Option
"--check" : Checks that the single input file is ordered as specified by the
arguments and the collating sequence of the current locale. |
SortOptionSet_bcdfmnru |
d
Option
"-d" : Consider only blanks and alphanumeric characters. |
SortOptionSet_bcdfmnru |
dictionaryOrder
Option
"--dictionaryOrder" : Consider only blanks and alphanumeric characters. |
SortOptionSet_bcdfmnru |
f
Option
"-f" : Consider all lowercase characters that have uppercase equivalents to
be the uppercase equivalent for the purposes of comparison. |
SortOptionSet_bcdfmnru |
ignoreCase
Option
"--ignoreCase" : Consider all lowercase characters that have uppercase equivalents to
be the uppercase equivalent for the purposes of comparison. |
SortOptionSet_bcdfmnru |
ignoreLeadingBlanks
Option
"--ignoreLeadingBlanks" : Ignore leading blanks. |
SortOptionSet_bdfmnru |
m
Option
"-m" : Merge only; the input file are assumed to be already sorted. |
SortOptionSet_bdfmnru |
merge
Option
"--merge" : Merge only; the input file are assumed to be already sorted. |
SortOptionSet_bcdfmnru |
n
Option
"-n" : Sort numerically; the number begins each line and consists of
optional blanks, an optional minus sign, and zero or more digits
possibly separated by thousands separators, optionally followed by a
decimal-point character and zero or more digits. |
SortOptionSet_bcdfmnru |
numericSort
Option
"--numericSort" : Sort numerically; the number begins each line and consists of
optional blanks, an optional minus sign, and zero or more digits
possibly separated by thousands separators, optionally followed by a
decimal-point character and zero or more digits. |
SortOptionSet_bcdfmnru |
r
Option
"-r" : Reverse the sense of comparisons. |
SortOptionSet_bcdfmnru |
reverse
Option
"--reverse" : Reverse the sense of comparisons. |
SortOptionSet_bcdfmnru |
u
Option
"-u" : Unique: suppress all but one in each set of lines having equal keys. |
SortOptionSet_bcdfmnru |
unique
Option
"--unique" : Unique: suppress all but one in each set of lines having equal keys. |
CONVERTER, EMPTY
Modifier and Type | Method and Description |
---|---|
EnumSet<SortOption> |
asSet()
Returns the set with the active options.
|
boolean |
isSet(SortOption option)
Returns true if the specified
option is set and false otherwise |
Iterator<SortOption> |
iterator()
Returns an immutable iterator with the active options of this option set.
|
Class<SortOption> |
optionType()
Returns the option type class, usually an enum.
|
int |
size()
Returns the number of active options in this option set.
|
boolean |
useAcronymFor(SortOption option)
Returns true if the
acronym should be used in
for the specified option string representations. |
static SortOptionSet_bcdfmnru |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortOptionSet_bcdfmnru[] |
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, valueOf
forEach, spliterator
public static final SortOptionSet_bcdfmnru Active_bdfnru
public static final SortOptionSet_bcdfmnru Active_bdfnru_long
public static final SortOptionSet_bcdfmnru Active_bdfnu
public static final SortOptionSet_bcdfmnru Active_bdfnu_long
public static final SortOptionSet_bcdfmnru Active_bdnru
public static final SortOptionSet_bcdfmnru Active_bdnru_long
public static final SortOptionSet_bcdfmnru Active_bfnru
public static final SortOptionSet_bcdfmnru Active_bfnru_long
public static final SortOptionSet_bcdfmnru Active_dfnru
public static final SortOptionSet_bcdfmnru Active_dfnru_long
public static final SortOptionSet_bcdfmnru Active_bdfnr
public static final SortOptionSet_bcdfmnru Active_bdfnr_long
public static final SortOptionSet_bcdfmnru Active_bdnu
public static final SortOptionSet_bcdfmnru Active_bdnu_long
public static final SortOptionSet_bcdfmnru Active_bfnu
public static final SortOptionSet_bcdfmnru Active_bfnu_long
public static final SortOptionSet_bcdfmnru Active_bnru
public static final SortOptionSet_bcdfmnru Active_bnru_long
public static final SortOptionSet_bcdfmnru Active_dfnu
public static final SortOptionSet_bcdfmnru Active_dfnu_long
public static final SortOptionSet_bcdfmnru Active_dnru
public static final SortOptionSet_bcdfmnru Active_dnru_long
public static final SortOptionSet_bcdfmnru Active_fnru
public static final SortOptionSet_bcdfmnru Active_fnru_long
public static final SortOptionSet_bcdfmnru Active_bdfn
public static final SortOptionSet_bcdfmnru Active_bdfn_long
public static final SortOptionSet_bcdfmnru Active_bdnr
public static final SortOptionSet_bcdfmnru Active_bdnr_long
public static final SortOptionSet_bcdfmnru Active_bfnr
public static final SortOptionSet_bcdfmnru Active_bfnr_long
public static final SortOptionSet_bcdfmnru Active_dfnr
public static final SortOptionSet_bcdfmnru Active_dfnr_long
public static final SortOptionSet_bcdfmnru Active_bnu
public static final SortOptionSet_bcdfmnru Active_bnu_long
public static final SortOptionSet_bcdfmnru Active_dnu
public static final SortOptionSet_bcdfmnru Active_dnu_long
public static final SortOptionSet_bcdfmnru Active_fnu
public static final SortOptionSet_bcdfmnru Active_fnu_long
public static final SortOptionSet_bcdfmnru Active_nru
public static final SortOptionSet_bcdfmnru Active_nru_long
public static final SortOptionSet_bcdfmnru Active_bdn
public static final SortOptionSet_bcdfmnru Active_bdn_long
public static final SortOptionSet_bcdfmnru Active_bfn
public static final SortOptionSet_bcdfmnru Active_bfn_long
public static final SortOptionSet_bcdfmnru Active_bnr
public static final SortOptionSet_bcdfmnru Active_bnr_long
public static final SortOptionSet_bcdfmnru Active_dfn
public static final SortOptionSet_bcdfmnru Active_dfn_long
public static final SortOptionSet_bcdfmnru Active_dnr
public static final SortOptionSet_bcdfmnru Active_dnr_long
public static final SortOptionSet_bcdfmnru Active_fnr
public static final SortOptionSet_bcdfmnru Active_fnr_long
public static final SortOptionSet_bcdfmnru Active_nu
public static final SortOptionSet_bcdfmnru Active_nu_long
public static final SortOptionSet_bcdfmnru Active_bn
public static final SortOptionSet_bcdfmnru Active_bn_long
public static final SortOptionSet_bcdfmnru Active_dn
public static final SortOptionSet_bcdfmnru Active_dn_long
public static final SortOptionSet_bcdfmnru Active_fn
public static final SortOptionSet_bcdfmnru Active_fn_long
public static final SortOptionSet_bcdfmnru Active_nr
public static final SortOptionSet_bcdfmnru Active_nr_long
public static final SortOptionSet_bcdfmnru Active_n
n
.public static final SortOptionSet_bcdfmnru Active_n_long
n
.public final SortOptionSet_bcdfnru c
"-c"
: Checks that the single input file is ordered as specified by the
arguments and the collating sequence of the current locale. No
output is produced; only the exit code is affected.
The option "-c"
is equivalent to the "--
check
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-c"
. If the option "-c"
is already set, the field c
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfnru check
"--check"
: Checks that the single input file is ordered as specified by the
arguments and the collating sequence of the current locale. No
output is produced; only the exit code is affected.
The option "--check"
is equivalent to the "-
c
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--check"
. If the option "--check"
is already set, the field check
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru d
"-d"
: Consider only blanks and alphanumeric characters.
(This option is ignored if a comparator operand is present).
The option "-d"
is equivalent to the "--
dictionaryOrder
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-d"
. If the option "-d"
is already set, the field d
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru dictionaryOrder
"--dictionaryOrder"
: Consider only blanks and alphanumeric characters.
(This option is ignored if a comparator operand is present).
The option "--dictionaryOrder"
is equivalent to the "-
d
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--dictionaryOrder"
. If the option "--dictionaryOrder"
is already set, the field dictionaryOrder
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru f
"-f"
: Consider all lowercase characters that have uppercase equivalents to
be the uppercase equivalent for the purposes of comparison.
(This option is ignored if a comparator operand is present).
The option "-f"
is equivalent to the "--
ignoreCase
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-f"
. If the option "-f"
is already set, the field f
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru ignoreCase
"--ignoreCase"
: Consider all lowercase characters that have uppercase equivalents to
be the uppercase equivalent for the purposes of comparison.
(This option is ignored if a comparator operand is present).
The option "--ignoreCase"
is equivalent to the "-
f
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--ignoreCase"
. If the option "--ignoreCase"
is already set, the field ignoreCase
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru b
"-b"
: Ignore leading blanks.
(This option is ignored if a comparator operand is present).
The option "-b"
is equivalent to the "--
ignoreLeadingBlanks
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-b"
. If the option "-b"
is already set, the field b
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru ignoreLeadingBlanks
"--ignoreLeadingBlanks"
: Ignore leading blanks.
(This option is ignored if a comparator operand is present).
The option "--ignoreLeadingBlanks"
is equivalent to the "-
b
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--ignoreLeadingBlanks"
. If the option "--ignoreLeadingBlanks"
is already set, the field ignoreLeadingBlanks
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bdfmnru m
"-m"
: Merge only; the input file are assumed to be already sorted.
The option "-m"
is equivalent to the "--
merge
"
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 SortOptionSet_bdfmnru merge
"--merge"
: Merge only; the input file are assumed to be already sorted.
The option "--merge"
is equivalent to the "-
m
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--merge"
. If the option "--merge"
is already set, the field merge
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru n
"-n"
: Sort numerically; the number begins each line and consists of
optional blanks, an optional minus sign, and zero or more digits
possibly separated by thousands separators, optionally followed by a
decimal-point character and zero or more digits. An empty number is
treated as '0'. The current local specifies the decimal-point
character and thousands separator.
Comparison is exact; there is no rounding error.
Neither a leading '+' nor exponential notation is recognized. To
compare such strings numerically, use the
-genericNumericSort (-g)
option.
(This option is ignored if a comparator operand is present).
The option "-n"
is equivalent to the "--
numericSort
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-n"
. If the option "-n"
is already set, the field n
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru numericSort
"--numericSort"
: Sort numerically; the number begins each line and consists of
optional blanks, an optional minus sign, and zero or more digits
possibly separated by thousands separators, optionally followed by a
decimal-point character and zero or more digits. An empty number is
treated as '0'. The current local specifies the decimal-point
character and thousands separator.
Comparison is exact; there is no rounding error.
Neither a leading '+' nor exponential notation is recognized. To
compare such strings numerically, use the
-genericNumericSort (-g)
option.
(This option is ignored if a comparator operand is present).
The option "--numericSort"
is equivalent to the "-
n
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--numericSort"
. If the option "--numericSort"
is already set, the field numericSort
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru r
"-r"
: Reverse the sense of comparisons.
The option "-r"
is equivalent to the "--
reverse
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-r"
. If the option "-r"
is already set, the field r
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru reverse
"--reverse"
: Reverse the sense of comparisons.
The option "--reverse"
is equivalent to the "-
r
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--reverse"
. If the option "--reverse"
is already set, the field reverse
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru u
"-u"
: Unique: suppress all but one in each set of lines having equal keys.
If used with the -c
option, checks that there are no lines
with duplicate keys, in addition to checking that the input file is
sorted.
The option "-u"
is equivalent to the "--
unique
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-u"
. If the option "-u"
is already set, the field u
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bcdfmnru unique
"--unique"
: Unique: suppress all but one in each set of lines having equal keys.
If used with the -c
option, checks that there are no lines
with duplicate keys, in addition to checking that the input file is
sorted.
The option "--unique"
is equivalent to the "-
u
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--unique"
. If the option "--unique"
is already set, the field unique
points to the enum constant itself
as it already represents the current set of options.
public static SortOptionSet_bcdfmnru[] values()
for (SortOptionSet_bcdfmnru c : SortOptionSet_bcdfmnru.values()) System.out.println(c);
public static SortOptionSet_bcdfmnru 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<SortOption> optionType()
OptionSet
optionType
in interface OptionSet<SortOption>
public boolean isSet(SortOption option)
OptionSet
option
is set and false otherwiseisSet
in interface OptionSet<SortOption>
option
- the option to testoption
is set in this OptionSet
public int size()
OptionSet
size
in interface OptionSet<SortOption>
public EnumSet<SortOption> asSet()
this
option set.asSet
in interface OptionSet<SortOption>
public Iterator<SortOption> iterator()
iterator
in interface Iterable<SortOption>
iterator
in interface OptionSet<SortOption>
public boolean useAcronymFor(SortOption 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
SortOptionSet_bcdfmnru.check.d;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
SortOptionSet_bcdfmnru.c.dictionaryOrder;
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:
SortOptionSet_bcdfmnru.c.d.check;
This method always returns true for the empty set with no active options.
useAcronymFor
in interface OptionSet<SortOption>
option
- the option of interest, has no impact on the result returned
by this methodCopyright © 2024. All rights reserved.