com.isomorphic.criteria

## Class SimpleCriteria

- com.isomorphic.criteria.SimpleCriteria

-     public class SimpleCriteria

  SimpleCriteria is a format for representing search criteria as simple key-value pairs.

  Matching logic depends on textMatchStyle parameter passed into methods.

  For more complex logic when different operators should be used or several criteria should be combine by logic operator use `AdvancedCriteria`.

  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.lang.String` | `TEXT_MATCH_STYLE_STARTS_WITH` TextMatchStyle for check that actual value should starts with passed value string.
    `static java.lang.String` | `TEXT_MATCH_STYLE_SUBSTRING` TextMatchStyle for check that actual value contain passed value string.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleCriteria(java.util.Map map)` Construct criteria using key-values pairs.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `valuesMatchCriteria(java.util.Map values, java.lang.String textMatchStyle)` Check that values in map match current criteria using passed textMatchStyle.

- - ### Field Detail

    - #### TEXT_MATCH_STYLE_STARTS_WITH

          public static final java.lang.String TEXT_MATCH_STYLE_STARTS_WITH

      TextMatchStyle for check that actual value should starts with passed value string.
      See Also:
        Constant Field Values

    - #### TEXT_MATCH_STYLE_SUBSTRING

          public static final java.lang.String TEXT_MATCH_STYLE_SUBSTRING

      TextMatchStyle for check that actual value contain passed value string.
      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### SimpleCriteria

          public SimpleCriteria(java.util.Map map)

      Construct criteria using key-values pairs.
      Parameters:
        `map` - - map of key-values pairs.

  - ### Method Detail

    - #### valuesMatchCriteria

          public boolean valuesMatchCriteria(java.util.Map values,
                                    java.lang.String textMatchStyle)

      Check that values in map match current criteria using passed textMatchStyle.
      Parameters:
        `values` - - values to check.
        `textMatchStyle` - - textMatchStyle to use.
      Returns:
        if values match criteria.