- All Implemented Interfaces:
Serializable
,Comparable<PathSortStrategy>
,Constable
The
PathSortStrategy
defines strategies to use when sorting e.g. when
using a PathComparator
or the method
PathMap.sortedKeys(PathSortStrategy)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSort alphabetically, differentiating between upper case and lower case, e.g. "10" will be sorted before "2".Sort alphabetically, not differentiating between upper case and lower case, e.g. "10" will be sorted before "2".Sort alphabetically, differentiating between upper case and lower case and considering any path elements representing an integral number, e.gSort alphabetically, not differentiating between upper case and lower case and considering any path elements representing an integral number, e.g. "10" will be sorted below "2".Default sort strategy beingALPHANUMERIC_IGNORE_CASE
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether to sort alphabetically and considering any path elements representing an integral number, e.g. "10" will be sorted below "2".boolean
Determines whether to sort by not differentiating between upper case and lower case.static PathSortStrategy
Returns the enum constant of this class with the specified name.static PathSortStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DEFAULT
Default sort strategy beingALPHANUMERIC_IGNORE_CASE
-
ALPHABETIC
Sort alphabetically, differentiating between upper case and lower case, e.g. "10" will be sorted before "2". -
ALPHABETIC_IGNORE_CASE
Sort alphabetically, not differentiating between upper case and lower case, e.g. "10" will be sorted before "2". -
ALPHANUMERIC
Sort alphabetically, differentiating between upper case and lower case and considering any path elements representing an integral number, e.g. "10" will be sorted below "2". -
ALPHANUMERIC_IGNORE_CASE
Sort alphabetically, not differentiating between upper case and lower case and considering any path elements representing an integral number, e.g. "10" will be sorted below "2".
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isAlphanumeric
public boolean isAlphanumeric()Determines whether to sort alphabetically and considering any path elements representing an integral number, e.g. "10" will be sorted below "2".- Returns:
- True in case to sort alphanumerically.
-
isIgnoreCase
public boolean isIgnoreCase()Determines whether to sort by not differentiating between upper case and lower case.- Returns:
- True when not differentiating between upper case and lower case.
-