public class Condition extends Object implements Constraint
Modifier and Type | Class and Description |
---|---|
static class |
Condition.Operator
The method by which to combine conditions for a query.
|
Constructor and Description |
---|
Condition() |
Condition(Condition.Operator operator) |
Condition(Condition.Operator operator,
List<Constraint> constraints) |
Modifier and Type | Method and Description |
---|---|
Condition |
addConstraint(Constraint constraint) |
static Condition |
and(Constraint... constraints) |
static Condition |
and(List<Constraint> constraints) |
Condition |
constraints(List<Constraint> cs) |
List<Constraint> |
getConstraints() |
Condition.Operator |
getOperator() |
Condition |
operator(Condition.Operator o) |
static Condition |
or(Constraint... constraints) |
static Condition |
or(List<Constraint> constraints) |
void |
setConstraints(List<Constraint> constraints) |
void |
setOperator(Condition.Operator operator) |
String |
toString() |
public Condition()
public Condition(Condition.Operator operator)
public Condition(Condition.Operator operator, List<Constraint> constraints)
public Condition.Operator getOperator()
public void setOperator(Condition.Operator operator)
public List<Constraint> getConstraints()
public void setConstraints(List<Constraint> constraints)
public Condition operator(Condition.Operator o)
public Condition constraints(List<Constraint> cs)
public Condition addConstraint(Constraint constraint)
public static Condition and(List<Constraint> constraints)
public static Condition and(Constraint... constraints)
public static Condition or(List<Constraint> constraints)
public static Condition or(Constraint... constraints)
<i>Copyright (c) 2022, SAS Institute Inc., Cary, NC, USA</i>