Package de.espirit.or.query
Class And
java.lang.Object
de.espirit.or.query.ComposedConstraint
de.espirit.or.query.And
- All Implemented Interfaces:
Constraint
,Serializable
,Cloneable
Interface to combine different sub constraints with
and
- Since:
- 4.0.17
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.or.query.Constraint
Constraint.Type
-
Constructor Summary
ConstructorDescriptionAnd()
Creates an empty And.And
(@NotNull Constraint constraint) Creates an And with the given sub constraint.And
(@NotNull Constraint constraint1, @NotNull Constraint constraint2) Creates an And combining the given constraints. -
Method Summary
Methods inherited from class de.espirit.or.query.ComposedConstraint
add, getConstraints, isEmpty, size
-
Constructor Details
-
And
public And()Creates an empty And. UseComposedConstraint.add(Constraint)
to add sub constraints.- Since:
- 4.0.17
-
And
Creates an And with the given sub constraint. UseComposedConstraint.add(Constraint)
to add more sub constraints.- Parameters:
constraint
- the first sub constraint used for the created And- Since:
- 4.0.95
-
And
Creates an And combining the given constraints.- Parameters:
constraint1
- the first constraint used for the created Andconstraint2
- the second constraint used for the created And- Since:
- 4.0.17
-
-
Method Details
-
getType
The type of this constraint:Constraint.Type.AND
- Returns:
- the type of this constraint.
- Since:
- 5.0.100
-