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