Package com.bazaarvoice.jolt.common
Class ComputedKeysComparator
java.lang.Object
com.bazaarvoice.jolt.common.ComputedKeysComparator
- All Implemented Interfaces:
Comparator<BaseSpec>
This Comparator is used for determining the execution order of childSpecs.apply(...)
Argument Map of Class: integer is used to determine precedence
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
orderMap
-
-
Constructor Details
-
ComputedKeysComparator
-
-
Method Details
-
fromOrder
Static factory method to get an Comparator instance for a given order map- Parameters:
orderMap
- of precedence- Returns:
- Comparator that uses the given order map to determine precedence
-
compare
- Specified by:
compare
in interfaceComparator<BaseSpec>
-