Class And

All Implemented Interfaces:
Constraint, Serializable, Cloneable

public class And extends ComposedConstraint
Interface to combine different sub constraints with and
Since:
4.0.17
See Also:
  • Constructor Details

    • And

      public And()
      Creates an empty And. Use ComposedConstraint.add(Constraint) to add sub constraints.
      Since:
      4.0.17
    • And

      public And(@NotNull @NotNull Constraint constraint)
      Creates an And with the given sub constraint. Use ComposedConstraint.add(Constraint) to add more sub constraints.
      Parameters:
      constraint - the first sub constraint used for the created And
      Since:
      4.0.95
    • And

      public And(@NotNull @NotNull Constraint constraint1, @NotNull @NotNull Constraint constraint2)
      Creates an And combining the given constraints.
      Parameters:
      constraint1 - the first constraint used for the created And
      constraint2 - the second constraint used for the created And
      Since:
      4.0.17
  • Method Details