![]() |
GrammarScope
4.0.0
|
Public Member Functions | |
ComposedComparator (final Comparator< T > comparator1, final Comparator< T > comparator2) | |
int | compare (final T e1, final T e2) |
Private Attributes | |
final Comparator< T > | comparator1 |
final Comparator< T > | comparator2 |
Composed comparator (use comparator 1, if it yields 0 use comparator 2)
<T> | type of object |
grammarscope.jung2.ComposedComparator< T >.ComposedComparator | ( | final Comparator< T > | comparator1, |
final Comparator< T > | comparator2 | ||
) |
Constructor
comparator1 | main comparator |
comparator2 | secondary comparator |
int grammarscope.jung2.ComposedComparator< T >.compare | ( | final T | e1, |
final T | e2 | ||
) |
|
private |
Main comparator
|
private |
Secondary comparator, used if main comparator yields 0