com.isomorphic.criteria.criterion

## Class LogicalCriterion

- java.lang.Object
- - com.isomorphic.criteria.criterion.LogicalCriterion

- All Implemented Interfaces:
    Criterion
  Direct Known Subclasses:
    AndCriterion, NotCriterion, OrCriterion

      public class LogicalCriterion
      extends java.lang.Object
      implements Criterion

  Logical criterion for combine all subcriteria(criterion.criteria) using some logic.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LogicalCriterion(OperatorBase operatorId, Criterion[] criteria)` Construct LogicalCriterion using parameters:
    `LogicalCriterion(OperatorBase operatorId, java.util.List criteria)` Construct LogicalCriterion using parameters:
    `LogicalCriterion(java.lang.String operatorId, Criterion[] criteria)` Construct LogicalCriterion using parameters:
    `LogicalCriterion(java.lang.String operatorId, java.util.List criteria)` Construct LogicalCriterion using parameters:

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.List` | `getCriteria()` Gets list of subcriteria.
    `void` | `setCriteria(java.util.List criteria)` Sets list of subcriteria.

    - ### Methods inherited from interface com.isomorphic.criteria.Criterion

      `getFieldName, getOperatorId, getValue, setFieldName, setOperatorId, setValue`

- - ### Constructor Detail

    - #### LogicalCriterion

          public LogicalCriterion(java.lang.String operatorId,
                                  java.util.List criteria)

      Construct LogicalCriterion using parameters:
      Parameters:
        `operatorId` - operator id.
        `criteria` - list of subcriteria.

    - #### LogicalCriterion

          public LogicalCriterion(java.lang.String operatorId,
                                  Criterion[] criteria)

      Construct LogicalCriterion using parameters:
      Parameters:
        `operatorId` - operator id.
        `criteria` - subcriteria.

    - #### LogicalCriterion

          public LogicalCriterion(OperatorBase operatorId,
                                  java.util.List criteria)

      Construct LogicalCriterion using parameters:
      Parameters:
        `operatorId` - operator that determines checking logic. This is likely to be a member of the `DefaultOperators` class, such as IContains or GreaterThan.
        `criteria` - list of subcriteria.

    - #### LogicalCriterion

          public LogicalCriterion(OperatorBase operatorId,
                                  Criterion[] criteria)

      Construct LogicalCriterion using parameters:
      Parameters:
        `operatorId` - operator that determines checking logic. This is likely to be a member of the `DefaultOperators` class, such as IContains or GreaterThan.
        `criteria` - subcriteria.

  - ### Method Detail

    - #### setCriteria

          public void setCriteria(java.util.List criteria)

      Sets list of subcriteria.
      Parameters:
        `criteria` - subcriteria.

    - #### getCriteria

          public java.util.List getCriteria()

      Gets list of subcriteria.
      Returns:
        subcriteria.