Interface Matcher

All Known Implementing Classes:
AbstractMatcher, AbstractSetMatcher, BetweenMatcher, ContainsAllMatcher, ContainsAnyMatcher, ContainsNoneMatcher, InMatcher, LikeMatcher, NotInMatcher, RegexMatcher, StringMatcher, TypeMatcher

public interface Matcher
Matcher role is to check if provided value matches pattern. Each evaluation takes place in type context, so same matcher can handle values differently based on type.
Author:
Przemek Hertel
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends ValueHolder>
    boolean
    matches(String value, String pattern, Type<T> type)
    Check if value matches the pattern.
  • Method Details

    • matches

      <T extends ValueHolder> boolean matches(String value, String pattern, Type<T> type)
      Check if value matches the pattern. Type can be used to parse value or to differentiate matchers behavior depending on value type. Type is defined per parameter Level.
      Type Parameters:
      T - level type
      Parameters:
      value - value form query (provided by user)
      pattern - pattern from parameter matrix (can be '*')
      type - type of value, might be null if none was set
      Returns:
      true if value matched, false otherwise