StaticOperand statOp = new Literal(literalValue);
return constraints(new Comparison(dynOp, op, statOp));
}
protected IndexConstraints constraints( final Constraint comparison ) {
return new IndexConstraints() {
@Override
public Collection<Constraint> getConstraints() {
return Collections.singletonList(comparison);
}