ALox  V. 2402 R. 0
Home ALox for C++ ALox for C# ALox for Java Download
Public Fields | Public Methods | List of all members
StringTree< T >.Walker.Sorter Class Reference
Inheritance diagram for StringTree< T >.Walker.Sorter:
[legend]
Collaboration diagram for StringTree< T >.Walker.Sorter:
[legend]

Class Description

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)
 

Member Function Documentation

◆ compare()

int compare ( NameAndNode  lhs,
NameAndNode  rhs 
)

This is the compare function, which will be invoked by Colletions.sort.

Parameters
lhsThe left hand side operand.
rhsThe right hand side operand.
Returns
The 'difference' between the given names or nodes.

Member Data Documentation

◆ pathSorter

Comparator<String> pathSorter = null

A user-defined comparison method for path names.

◆ sensitivity

Case sensitivity = Case.IGNORE

The case comparison rules for built-in path sorting. Defaults to StringComparison.CurrentCultureIgnoreCase.

◆ sortOrder

SortOrder sortOrder = SortOrder.ASCENDING

The sort order (used with default path name sorting).

◆ valueSorter

Comparator<T> valueSorter = null

A user-defined comparison method for sorting by value types.


The documentation for this class was generated from the following file: