@Test public void testToPredicate() { EqualsPredicate p1 = new EqualsPredicate<String>("p1", "one"); EqualsPredicate p2 = new EqualsPredicate<String>("p2", "two"); OrPredicate orPRedicate = new OrPredicate(p1, p2); assertEquals(orPRedicate, new OrOperator(1).toPredicate(p1, p2)); }
@Override public Predicate toPredicate(Predicate left, Predicate right) { return new OrPredicate(left, right); }
OrOperator extends AbstractOperator implements LogicalOperator { @Override public Predicate toPredicate(Predicate left, Predicate right) { return new OrPredicate(left, right); } }
OrOperator extends AbstractOperator implements LogicalOperator { @Override public Predicate toPredicate(Predicate left, Predicate right) { return new OrPredicate(left, right); } OrOperator(int ctxPrecedence); }
OrOperator extends AbstractOperator implements LogicalOperator { @Override public Predicate toPredicate(Predicate left, Predicate right) { return new OrPredicate(left, right); } OrOperator(int ctxPrecedence); @Override TYPE getType(); @Override String getName(); @Override int getBasePrecedence(); @Override Predicate toPredicate(Predicate left, Predicate right); @Override String toString(); }
OrOperator extends AbstractOperator implements LogicalOperator { @Override public Predicate toPredicate(Predicate left, Predicate right) { return new OrPredicate(left, right); } OrOperator(int ctxPrecedence); @Override TYPE getType(); @Override String getName(); @Override int getBasePrecedence(); @Override Predicate toPredicate(Predicate left, Predicate right); @Override String toString();  }