com.isomorphic.criteria.criterion

## Class OtherFieldCriterion

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

- All Implemented Interfaces:
    Criterion

      public class OtherFieldCriterion
      extends java.lang.Object
      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 otherFieldName)` Calls `OtherFieldCriterion(String, OperatorBase, String)` constructor, passing `DefaultOperators.EqualsField` as operatorId.
    `OtherFieldCriterion(java.lang.String fieldName, java.lang.String operatorId, java.lang.String otherFieldName)` Constructor by parameters:

  - ### Method Summary

    All Methods Instance Methods Concrete 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 IContainsField or GreaterThanField.
        `otherFieldName` - - name of field that will be used for checking

    - #### OtherFieldCriterion

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

      Calls `OtherFieldCriterion(String, OperatorBase, String)` constructor, passing `DefaultOperators.EqualsField` as operatorId.
      Parameters:
        `fieldName` - - name of field to check
        `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.