This is a internal, protected helper class implementing the sorting of a list of child nodes.
Public Fields | |
Comparator< String > | pathSorter = null |
Case | sensitivity = Case.IGNORE |
SortOrder | sortOrder = SortOrder.ASCENDING |
Comparator< T > | valueSorter = null |
Public Methods | |
int | compare (NameAndNode lhs, NameAndNode rhs) |
int compare | ( | NameAndNode | lhs, |
NameAndNode | rhs | ||
) |
This is the compare function, which will be invoked by Colletions.sort
.
lhs | The left hand side operand. |
rhs | The right hand side operand. |
Comparator<String> pathSorter = null |
A user-defined comparison method for path names.
Case sensitivity = Case.IGNORE |
The case comparison rules for built-in path sorting. Defaults to StringComparison.CurrentCultureIgnoreCase.
SortOrder sortOrder = SortOrder.ASCENDING |
The sort order (used with default path name sorting).
Comparator<T> valueSorter = null |
A user-defined comparison method for sorting by value types.