com.isomorphic.criteria.criterion

## Class SetCriterion

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

- All Implemented Interfaces:
    Criterion

      public class SetCriterion
      extends java.lang.Object
      implements Criterion

  Criterion for checking that field value matches to predefined set of values.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SetCriterion(java.lang.String fieldName, OperatorBase operatorId, java.util.Collection values)` Construct SetCriterion using parameters:
    `SetCriterion(java.lang.String fieldName, OperatorBase operatorId, java.lang.Object[] values)` Construct SetCriterion using parameters:
    `SetCriterion(java.lang.String fieldName, java.lang.String operatorId, java.util.Collection values)` Construct SetCriterion using parameters:
    `SetCriterion(java.lang.String fieldName, java.lang.String operatorId, java.lang.Object[] values)` Construct SetCriterion using parameters:

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.util.Collection` | `getValues()` Gets collection of values.
    `void` | `setValues(java.util.Collection values)` Sets collection of values to match.
    `void` | `setValues(java.lang.Object[] values)` Sets array of values to match.

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

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

- - ### Constructor Detail

    - #### SetCriterion

          public SetCriterion(java.lang.String fieldName,
                              java.lang.String operatorId,
                              java.util.Collection values)

      Construct SetCriterion using parameters:
      Parameters:
        `fieldName` - field name.
        `operatorId` - operator id.
        `values` - collection of values to match.

    - #### SetCriterion

          public SetCriterion(java.lang.String fieldName,
                              java.lang.String operatorId,
                              java.lang.Object[] values)

      Construct SetCriterion using parameters:
      Parameters:
        `fieldName` - field name.
        `operatorId` - operator id.
        `values` - array of values to match.

    - #### SetCriterion

          public SetCriterion(java.lang.String fieldName,
                              OperatorBase operatorId,
                              java.util.Collection values)

      Construct SetCriterion using parameters:
      Parameters:
        `fieldName` - field name.
        `operatorId` - operator that determines checking logic. This is likely to be a member of the `DefaultOperators` class, such as IContains or GreaterThan.
        `values` - collection of values to match.

    - #### SetCriterion

          public SetCriterion(java.lang.String fieldName,
                              OperatorBase operatorId,
                              java.lang.Object[] values)

      Construct SetCriterion using parameters:
      Parameters:
        `fieldName` - field name.
        `operatorId` - operator that determines checking logic. This is likely to be a member of the `DefaultOperators` class, such as IContains or GreaterThan.
        `values` - array of values to match.

  - ### Method Detail

    - #### setValues

          public void setValues(java.util.Collection values)

      Sets collection of values to match.
      Parameters:
        `values` - collection of values.

    - #### setValues

          public void setValues(java.lang.Object[] values)

      Sets array of values to match.
      Parameters:
        `values` - array of values.

    - #### getValues

          public java.util.Collection getValues()

      Gets collection of values.
      Returns:
        collection of values.