Interface ComparatorHolder<S,C extends Comparable>
- All Known Implementing Classes:
OrderGlobalStep,OrderLocalStep
public interface ComparatorHolder<S,C extends Comparable>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddComparator(Traversal.Admin<S, C> traversal, Comparator<C> comparator) Add aTraversal-basedComparatorto the holder.List<org.javatuples.Pair<Traversal.Admin<S,C>, Comparator<C>>> Get the comparators associated with this holder.
-
Method Details
-
addComparator
- Parameters:
traversal- the traversal to pre-process the object by.comparator- the comparator to compare the result of the object after traversal processing
-
getComparators
List<org.javatuples.Pair<Traversal.Admin<S,C>, getComparators()Comparator<C>>> Get the comparators associated with this holder. The comparators are ordered according to their oder of operation.- Returns:
- a list of
Traversal/Comparator-pairs
-