public enum SortOptionSet_bdfgmru extends Enum<SortOptionSet_bdfgmru> implements SortOptions
sort
command with
the following options: d
, g
, f
, b
, m
, r
, u
.
Application code does normally not directly refer to this class;
Sort.Options
should be used instead to specify command
options. See also SortOptions
for more information.
SortOptions.Default
Modifier and Type | Field and Description |
---|---|
SortOptionSet_bdfgmru |
b
Option
"-b" : Ignore leading blanks. |
SortOptionSet_bdfgmru |
d
Option
"-d" : Consider only blanks and alphanumeric characters. |
SortOptionSet_bdfgmru |
dictionaryOrder
Option
"--dictionaryOrder" : Consider only blanks and alphanumeric characters. |
SortOptionSet_bdfgmru |
f
Option
"-f" : Consider all lowercase characters that have uppercase equivalents to
be the uppercase equivalent for the purposes of comparison. |
SortOptionSet_bdfgmru |
g
Option
"-g" : Sort numerically, using the standard Double.parseDouble(String)
function to convert a trimmed line to a double-precision floating
point number. |
SortOptionSet_bdfgmru |
generalNumericSort
Option
"--generalNumericSort" : Sort numerically, using the standard Double.parseDouble(String)
function to convert a trimmed line to a double-precision floating
point number. |
SortOptionSet_bdfgmru |
ignoreCase
Option
"--ignoreCase" : Consider all lowercase characters that have uppercase equivalents to
be the uppercase equivalent for the purposes of comparison. |
SortOptionSet_bdfgmru |
ignoreLeadingBlanks
Option
"--ignoreLeadingBlanks" : Ignore leading blanks. |
SortOptionSet_bdfgmru |
m
Option
"-m" : Merge only; the input file are assumed to be already sorted. |
SortOptionSet_bdfgmru |
merge
Option
"--merge" : Merge only; the input file are assumed to be already sorted. |
SortOptionSet_bdfgmru |
r
Option
"-r" : Reverse the sense of comparisons. |
SortOptionSet_bdfgmru |
reverse
Option
"--reverse" : Reverse the sense of comparisons. |
SortOptionSet_bdfgmru |
u
Option
"-u" : Unique: suppress all but one in each set of lines having equal keys. |
SortOptionSet_bdfgmru |
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_bdfgmru |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortOptionSet_bdfgmru[] |
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_bdfgmru Active_bdfgmru
public static final SortOptionSet_bdfgmru Active_bdfgmru_long
public static final SortOptionSet_bdfgmru Active_bdfgmu
public static final SortOptionSet_bdfgmru Active_bdfgmu_long
public static final SortOptionSet_bdfgmru Active_bdgmru
public static final SortOptionSet_bdfgmru Active_bdgmru_long
public static final SortOptionSet_bdfgmru Active_bfgmru
public static final SortOptionSet_bdfgmru Active_bfgmru_long
public static final SortOptionSet_bdfgmru Active_dfgmru
public static final SortOptionSet_bdfgmru Active_dfgmru_long
public static final SortOptionSet_bdfgmru Active_bdfgmr
public static final SortOptionSet_bdfgmru Active_bdfgmr_long
public static final SortOptionSet_bdfgmru Active_bdgmu
public static final SortOptionSet_bdfgmru Active_bdgmu_long
public static final SortOptionSet_bdfgmru Active_bfgmu
public static final SortOptionSet_bdfgmru Active_bfgmu_long
public static final SortOptionSet_bdfgmru Active_bgmru
public static final SortOptionSet_bdfgmru Active_bgmru_long
public static final SortOptionSet_bdfgmru Active_dfgmu
public static final SortOptionSet_bdfgmru Active_dfgmu_long
public static final SortOptionSet_bdfgmru Active_dgmru
public static final SortOptionSet_bdfgmru Active_dgmru_long
public static final SortOptionSet_bdfgmru Active_fgmru
public static final SortOptionSet_bdfgmru Active_fgmru_long
public static final SortOptionSet_bdfgmru Active_bdfgm
public static final SortOptionSet_bdfgmru Active_bdfgm_long
public static final SortOptionSet_bdfgmru Active_bdgmr
public static final SortOptionSet_bdfgmru Active_bdgmr_long
public static final SortOptionSet_bdfgmru Active_bfgmr
public static final SortOptionSet_bdfgmru Active_bfgmr_long
public static final SortOptionSet_bdfgmru Active_dfgmr
public static final SortOptionSet_bdfgmru Active_dfgmr_long
public static final SortOptionSet_bdfgmru Active_bgmu
public static final SortOptionSet_bdfgmru Active_bgmu_long
public static final SortOptionSet_bdfgmru Active_dgmu
public static final SortOptionSet_bdfgmru Active_dgmu_long
public static final SortOptionSet_bdfgmru Active_fgmu
public static final SortOptionSet_bdfgmru Active_fgmu_long
public static final SortOptionSet_bdfgmru Active_gmru
public static final SortOptionSet_bdfgmru Active_gmru_long
public static final SortOptionSet_bdfgmru Active_bdgm
public static final SortOptionSet_bdfgmru Active_bdgm_long
public static final SortOptionSet_bdfgmru Active_bfgm
public static final SortOptionSet_bdfgmru Active_bfgm_long
public static final SortOptionSet_bdfgmru Active_bgmr
public static final SortOptionSet_bdfgmru Active_bgmr_long
public static final SortOptionSet_bdfgmru Active_dfgm
public static final SortOptionSet_bdfgmru Active_dfgm_long
public static final SortOptionSet_bdfgmru Active_dgmr
public static final SortOptionSet_bdfgmru Active_dgmr_long
public static final SortOptionSet_bdfgmru Active_fgmr
public static final SortOptionSet_bdfgmru Active_fgmr_long
public static final SortOptionSet_bdfgmru Active_gmu
public static final SortOptionSet_bdfgmru Active_gmu_long
public static final SortOptionSet_bdfgmru Active_bgm
public static final SortOptionSet_bdfgmru Active_bgm_long
public static final SortOptionSet_bdfgmru Active_dgm
public static final SortOptionSet_bdfgmru Active_dgm_long
public static final SortOptionSet_bdfgmru Active_fgm
public static final SortOptionSet_bdfgmru Active_fgm_long
public static final SortOptionSet_bdfgmru Active_gmr
public static final SortOptionSet_bdfgmru Active_gmr_long
public static final SortOptionSet_bdfgmru Active_gm
public static final SortOptionSet_bdfgmru Active_gm_long
public final SortOptionSet_bdfgmru 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_bdfgmru 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_bdfgmru g
"-g"
: Sort numerically, using the standard Double.parseDouble(String)
function to convert a trimmed line to a double-precision floating
point number. This allows floating point numbers to be specified in
scientific notation, like 1.0e-34 and 10e100.
Uses the following collating sequence: Lines that cannot be parsed because they do not represent valid double values (in alpha-numeric order); "-Infinity"; finite numbers in ascending numeric order (with -0 < +0); "Infinity"; "NaN".
This option is usually slower than -numeric-sort (-n)
and it
can lose information when converting to floating point.
(This option is ignored if a comparator operand is present).
The option "-g"
is equivalent to the "--
generalNumericSort
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "-g"
. If the option "-g"
is already set, the field g
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bdfgmru generalNumericSort
"--generalNumericSort"
: Sort numerically, using the standard Double.parseDouble(String)
function to convert a trimmed line to a double-precision floating
point number. This allows floating point numbers to be specified in
scientific notation, like 1.0e-34 and 10e100.
Uses the following collating sequence: Lines that cannot be parsed because they do not represent valid double values (in alpha-numeric order); "-Infinity"; finite numbers in ascending numeric order (with -0 < +0); "Infinity"; "NaN".
This option is usually slower than -numeric-sort (-n)
and it
can lose information when converting to floating point.
(This option is ignored if a comparator operand is present).
The option "--generalNumericSort"
is equivalent to the "-
g
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "--generalNumericSort"
. If the option "--generalNumericSort"
is already set, the field generalNumericSort
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bdfgmru 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_bdfgmru 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_bdfgmru 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_bdfgmru 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_bdfgmru 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_bdfgmru 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_bdfgmru 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_bdfgmru 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_bdfgmru 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_bdfgmru 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_bdfgmru[] values()
for (SortOptionSet_bdfgmru c : SortOptionSet_bdfgmru.values()) System.out.println(c);
public static SortOptionSet_bdfgmru 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_bdfgmru.dictionaryOrder.g;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_bdfgmru.d.generalNumericSort;
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_bdfgmru.d.g.dictionaryOrder;
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.