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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
comparein interfaceComparator<BaseSpec>
-