Class OPS.OpsPrecedenceComparator

java.lang.Object
com.bazaarvoice.jolt.defaultr.OPS.OpsPrecedenceComparator
All Implemented Interfaces:
Comparator<OPS>
Enclosing class:
OPS

public static class OPS.OpsPrecedenceComparator extends Object implements Comparator<OPS>
  • Constructor Details

    • OpsPrecedenceComparator

      public OpsPrecedenceComparator()
  • Method Details

    • compare

      public int compare(OPS ops, OPS ops1)
      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 interface Comparator<OPS>