com.isomorphic.criteria.criterion

## Class OtherFieldCriterion

- com.isomorphic.criteria.criterion.OtherFieldCriterion

- All Implemented Interfaces:
    Criterion

      public class OtherFieldCriterion
      implements Criterion

  Criterion for checking field value against other field value.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OtherFieldCriterion(java.lang.String fieldName, OperatorBase operatorId, java.lang.String otherFieldName)` Constructor by parameters:
    `OtherFieldCriterion(java.lang.String fieldName, java.lang.String operatorId, java.lang.String otherFieldName)` Constructor by parameters:

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getOtherFieldName()` Gets other field name.
    `void` | `setOtherFieldName(java.lang.String otherFieldName)` Sets other field name.

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

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

- - ### Constructor Detail

    - #### OtherFieldCriterion

          public OtherFieldCriterion(java.lang.String fieldName,
                             java.lang.String operatorId,
                             java.lang.String otherFieldName)

      Constructor by parameters:
      Parameters:
        `fieldName` - - name of field to check
        `operatorId` - - operator that determines checking logic
        `otherFieldName` - - name of field that will be used for checking

    - #### OtherFieldCriterion

          public OtherFieldCriterion(java.lang.String fieldName,
                             OperatorBase operatorId,
                             java.lang.String otherFieldName)

      Constructor by parameters:
      Parameters:
        `fieldName` - - name of field to check
        `operatorId` - - operator that determines checking logic. This is likely to be a member of the `DefaultOperators` class, such as IContains or GreaterThan.
        `otherFieldName` - - name of field that will be used for checking

  - ### Method Detail

    - #### setOtherFieldName

          public void setOtherFieldName(java.lang.String otherFieldName)

      Sets other field name.
      Parameters:
        `otherFieldName` - other field name.

    - #### getOtherFieldName

          public java.lang.String getOtherFieldName()

      Gets other field name.
      Returns:
        other field name.