Package com.bazaarvoice.jolt.defaultr
Class OPS.OpsPrecedenceComparator
java.lang.Object
com.bazaarvoice.jolt.defaultr.OPS.OpsPrecedenceComparator
- All Implemented Interfaces:
Comparator<OPS>
- Enclosing class:
OPS
-
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
-
Constructor Details
-
OpsPrecedenceComparator
public OpsPrecedenceComparator()
-
-
Method Details
-
compare
The order we want to apply Defaultr logic is Literals, Or, and then Star. Since we walk the sorted data from 0 to n, that means Literals need to low, and Star should be high.- Specified by:
compare
in interfaceComparator<OPS>
-