public enum SortOptionSet_MVbdfghmnru extends Enum<SortOptionSet_MVbdfghmnru> implements SortOptions
SortOptions.Default
Modifier and Type  Field and Description 

SortOptionSet_MVbdfghmnru 
b
Option
"b" : Ignore leading blanks. 
SortOptionSet_MVbdfghmnru 
d
Option
"d" : Consider only blanks and alphanumeric characters. 
SortOptionSet_MVbdfghmnru 
dictionaryOrder
Option
"dictionaryOrder" : Consider only blanks and alphanumeric characters. 
SortOptionSet_MVbdfghmnru 
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 doubleprecision floating
point number. 
SortOptionSet_bdfgmru 
generalNumericSort
Option
"generalNumericSort" : Sort numerically, using the standard Double.parseDouble(String)
function to convert a trimmed line to a doubleprecision floating
point number. 
SortOptionSet_bdfhmru 
h
Option
"h" : Sort numerically, first by numeric sign (negative, zero, or
positive); then by SI suffix (either empty, or 'k' or 'K', or one
of 'MGTPEZY', in that order); and finally by numeric value. 
SortOptionSet_bdfhmru 
humanNumericSort
Option
"humanNumericSort" : Sort numerically, first by numeric sign (negative, zero, or
positive); then by SI suffix (either empty, or 'k' or 'K', or one
of 'MGTPEZY', in that order); and finally by numeric value. 
SortOptionSet_MVbdfghmnru 
ignoreCase
Option
"ignoreCase" : Consider all lowercase characters that have uppercase equivalents to
be the uppercase equivalent for the purposes of comparison. 
SortOptionSet_MVbdfghmnru 
ignoreLeadingBlanks
Option
"ignoreLeadingBlanks" : Ignore leading blanks. 
SortOptionSet_MVbdfghmnru 
m
Option
"m" : Merge only; the input file are assumed to be already sorted. 
SortOptionSet_Mbdfmru 
M
Option
"M" : An initial string, consisting of any amount of blanks, followed by a
month name abbreviation, is folded to UPPER case and compared in the
order: (unknown) < 'JAN' < ... 
SortOptionSet_MVbdfghmnru 
merge
Option
"merge" : Merge only; the input file are assumed to be already sorted. 
SortOptionSet_Mbdfmru 
monthSort
Option
"monthSort" : An initial string, consisting of any amount of blanks, followed by a
month name abbreviation, is folded to UPPER case and compared in the
order: (unknown) < 'JAN' < ... 
SortOptionSet_bdfmnru 
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
decimalpoint character and zero or more digits. 
SortOptionSet_bdfmnru 
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
decimalpoint character and zero or more digits. 
SortOptionSet_MVbdfghmnru 
r
Option
"r" : Reverse the sense of comparisons. 
SortOptionSet_MVbdfghmnru 
reverse
Option
"reverse" : Reverse the sense of comparisons. 
SortOptionSet_MVbdfghmnru 
u
Option
"u" : Unique: suppress all but one in each set of lines having equal keys. 
SortOptionSet_MVbdfghmnru 
unique
Option
"unique" : Unique: suppress all but one in each set of lines having equal keys. 
SortOptionSet_Vbdfmru 
V
Option
"V" : Sort by version name and number. 
SortOptionSet_Vbdfmru 
versionSort
Option
"versionSort" : Sort by version name and number. 
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_MVbdfghmnru 
valueOf(String name)
Returns the enum constant of this type with the specified name.

static SortOptionSet_MVbdfghmnru[] 
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_MVbdfghmnru Active_bdfmru
public static final SortOptionSet_MVbdfghmnru Active_bdfmru_long
public static final SortOptionSet_MVbdfghmnru Active_bdfmu
public static final SortOptionSet_MVbdfghmnru Active_bdfmu_long
public static final SortOptionSet_MVbdfghmnru Active_bdmru
public static final SortOptionSet_MVbdfghmnru Active_bdmru_long
public static final SortOptionSet_MVbdfghmnru Active_bfmru
public static final SortOptionSet_MVbdfghmnru Active_bfmru_long
public static final SortOptionSet_MVbdfghmnru Active_dfmru
public static final SortOptionSet_MVbdfghmnru Active_dfmru_long
public static final SortOptionSet_MVbdfghmnru Active_bdfmr
public static final SortOptionSet_MVbdfghmnru Active_bdfmr_long
public static final SortOptionSet_MVbdfghmnru Active_bdmu
public static final SortOptionSet_MVbdfghmnru Active_bdmu_long
public static final SortOptionSet_MVbdfghmnru Active_bfmu
public static final SortOptionSet_MVbdfghmnru Active_bfmu_long
public static final SortOptionSet_MVbdfghmnru Active_bmru
public static final SortOptionSet_MVbdfghmnru Active_bmru_long
public static final SortOptionSet_MVbdfghmnru Active_dfmu
public static final SortOptionSet_MVbdfghmnru Active_dfmu_long
public static final SortOptionSet_MVbdfghmnru Active_dmru
public static final SortOptionSet_MVbdfghmnru Active_dmru_long
public static final SortOptionSet_MVbdfghmnru Active_fmru
public static final SortOptionSet_MVbdfghmnru Active_fmru_long
public static final SortOptionSet_MVbdfghmnru Active_bdfm
public static final SortOptionSet_MVbdfghmnru Active_bdfm_long
public static final SortOptionSet_MVbdfghmnru Active_bdmr
public static final SortOptionSet_MVbdfghmnru Active_bdmr_long
public static final SortOptionSet_MVbdfghmnru Active_bfmr
public static final SortOptionSet_MVbdfghmnru Active_bfmr_long
public static final SortOptionSet_MVbdfghmnru Active_dfmr
public static final SortOptionSet_MVbdfghmnru Active_dfmr_long
public static final SortOptionSet_MVbdfghmnru Active_bmu
public static final SortOptionSet_MVbdfghmnru Active_bmu_long
public static final SortOptionSet_MVbdfghmnru Active_dmu
public static final SortOptionSet_MVbdfghmnru Active_dmu_long
public static final SortOptionSet_MVbdfghmnru Active_fmu
public static final SortOptionSet_MVbdfghmnru Active_fmu_long
public static final SortOptionSet_MVbdfghmnru Active_mru
public static final SortOptionSet_MVbdfghmnru Active_mru_long
public static final SortOptionSet_MVbdfghmnru Active_bdm
public static final SortOptionSet_MVbdfghmnru Active_bdm_long
public static final SortOptionSet_MVbdfghmnru Active_bfm
public static final SortOptionSet_MVbdfghmnru Active_bfm_long
public static final SortOptionSet_MVbdfghmnru Active_bmr
public static final SortOptionSet_MVbdfghmnru Active_bmr_long
public static final SortOptionSet_MVbdfghmnru Active_dfm
public static final SortOptionSet_MVbdfghmnru Active_dfm_long
public static final SortOptionSet_MVbdfghmnru Active_dmr
public static final SortOptionSet_MVbdfghmnru Active_dmr_long
public static final SortOptionSet_MVbdfghmnru Active_fmr
public static final SortOptionSet_MVbdfghmnru Active_fmr_long
public static final SortOptionSet_MVbdfghmnru Active_mu
public static final SortOptionSet_MVbdfghmnru Active_mu_long
public static final SortOptionSet_MVbdfghmnru Active_bm
public static final SortOptionSet_MVbdfghmnru Active_bm_long
public static final SortOptionSet_MVbdfghmnru Active_dm
public static final SortOptionSet_MVbdfghmnru Active_dm_long
public static final SortOptionSet_MVbdfghmnru Active_fm
public static final SortOptionSet_MVbdfghmnru Active_fm_long
public static final SortOptionSet_MVbdfghmnru Active_mr
public static final SortOptionSet_MVbdfghmnru Active_mr_long
public static final SortOptionSet_MVbdfghmnru Active_m
m
.public static final SortOptionSet_MVbdfghmnru Active_m_long
m
.public final SortOptionSet_MVbdfghmnru 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_MVbdfghmnru 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 doubleprecision floating
point number. This allows floating point numbers to be specified in
scientific notation, like 1.0e34 and 10e100.
Uses the following collating sequence: Lines that cannot be parsed because they do not represent valid double values (in alphanumeric order); "Infinity"; finite numbers in ascending numeric order (with 0 < +0); "Infinity"; "NaN".
This option is usually slower than numericsort (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 doubleprecision floating
point number. This allows floating point numbers to be specified in
scientific notation, like 1.0e34 and 10e100.
Uses the following collating sequence: Lines that cannot be parsed because they do not represent valid double values (in alphanumeric order); "Infinity"; finite numbers in ascending numeric order (with 0 < +0); "Infinity"; "NaN".
This option is usually slower than numericsort (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_bdfhmru h
"h"
: Sort numerically, first by numeric sign (negative, zero, or
positive); then by SI suffix (either empty, or 'k' or 'K', or one
of 'MGTPEZY', in that order); and finally by numeric value. For
example, '1023M' sorts before '1G' because 'M' (mega) precedes 'G'
(giga) as an SI suffix.
This option sorts values that are consistently scaled to the nearest
suffix, regardless of whether suffixes denote powers of 1000 or
1024, and it therefore sorts the output of any single invocation of
the ls
command that are invoked with the humanreadable
option.
The syntax for numbers is the same as for the
numericSort (n)
option; the SI suffix must immediately
follow the number.
(This option is ignored if a comparator operand is present).
The option "h"
is equivalent to the "
humanNumericSort
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "h"
. If the option "h"
is already set, the field h
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bdfhmru humanNumericSort
"humanNumericSort"
: Sort numerically, first by numeric sign (negative, zero, or
positive); then by SI suffix (either empty, or 'k' or 'K', or one
of 'MGTPEZY', in that order); and finally by numeric value. For
example, '1023M' sorts before '1G' because 'M' (mega) precedes 'G'
(giga) as an SI suffix.
This option sorts values that are consistently scaled to the nearest
suffix, regardless of whether suffixes denote powers of 1000 or
1024, and it therefore sorts the output of any single invocation of
the ls
command that are invoked with the humanreadable
option.
The syntax for numbers is the same as for the
numericSort (n)
option; the SI suffix must immediately
follow the number.
(This option is ignored if a comparator operand is present).
The option "humanNumericSort"
is equivalent to the "
h
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "humanNumericSort"
. If the option "humanNumericSort"
is already set, the field humanNumericSort
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_MVbdfghmnru 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_MVbdfghmnru 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_MVbdfghmnru 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_MVbdfghmnru 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_MVbdfghmnru 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_MVbdfghmnru 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_Mbdfmru M
"M"
: An initial string, consisting of any amount of blanks, followed by a
month name abbreviation, is folded to UPPER case and compared in the
order: (unknown) < 'JAN' < ... < 'DEC'. The current locale
determines the month spellings.
The option "M"
is equivalent to the "
monthSort
"
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_Mbdfmru monthSort
"monthSort"
: An initial string, consisting of any amount of blanks, followed by a
month name abbreviation, is folded to UPPER case and compared in the
order: (unknown) < 'JAN' < ... < 'DEC'. The current locale
determines the month spellings.
The option "monthSort"
is equivalent to the "
M
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "monthSort"
. If the option "monthSort"
is already set, the field monthSort
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_bdfmnru 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
decimalpoint character and zero or more digits. An empty number is
treated as '0'. The current local specifies the decimalpoint
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_bdfmnru 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
decimalpoint character and zero or more digits. An empty number is
treated as '0'. The current local specifies the decimalpoint
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_MVbdfghmnru 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_MVbdfghmnru 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_MVbdfghmnru 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_MVbdfghmnru 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 final SortOptionSet_Vbdfmru V
"V"
: Sort by version name and number. It behaves like a standard sort,
except that each sequence of decimal digits is treated numerically
as an index/version number.
(This option is ignored if a comparator operand is present).
The option "V"
is equivalent to the "
versionSort
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "V"
. If the option "V"
is already set, the field V
points to the enum constant itself
as it already represents the current set of options.
public final SortOptionSet_Vbdfmru versionSort
"versionSort"
: Sort by version name and number. It behaves like a standard sort,
except that each sequence of decimal digits is treated numerically
as an index/version number.
(This option is ignored if a comparator operand is present).
The option "versionSort"
is equivalent to the "
V
"
option.
Technically speaking, this field points to a set with the options of the
current set plus the option "versionSort"
. If the option "versionSort"
is already set, the field versionSort
points to the enum constant itself
as it already represents the current set of options.
public static SortOptionSet_MVbdfghmnru[] values()
for (SortOptionSet_MVbdfghmnru c : SortOptionSet_MVbdfghmnru.values()) System.out.println(c);
public static SortOptionSet_MVbdfghmnru 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_MVbdfghmnru.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_MVbdfghmnru.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_MVbdfghmnru.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 © 2022. All rights reserved.