Package io.higson.runtime.matcher
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
- Author:
- przemek hertel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <T extends ValueHolder>
boolean<T extends ValueHolder>
booleanCheck if value matches the pattern.
-
Field Details
-
DEFAULT_SEPARATOR
public static final char DEFAULT_SEPARATOR- See Also:
-
-
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
Description copied from interface:MatcherCheck 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 parameterLevel.- 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
-