Class AbstractSetMatcher

java.lang.Object
io.higson.runtime.matcher.AbstractMatcher
io.higson.runtime.matcher.AbstractSetMatcher
All Implemented Interfaces:
Matcher
Direct Known Subclasses:
ContainsAllMatcher, ContainsAnyMatcher, InMatcher

public abstract class AbstractSetMatcher extends AbstractMatcher
Author:
przemek hertel
  • Field Details

  • Constructor Details

    • AbstractSetMatcher

      public AbstractSetMatcher(char separator)
  • Method Details

    • doMatches

      public abstract <T extends ValueHolder> boolean doMatches(String value, String pattern, Type<T> type)
    • matches

      public <T extends ValueHolder> boolean matches(String value, String pattern, Type<T> type)
      Description copied from interface: Matcher
      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