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