Class AbstractSetMatcher
java.lang.Object
pl.decerto.hyperon.runtime.matcher.AbstractMatcher
pl.decerto.hyperon.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.protected <T extends ValueHolder>
Stringprotected String[]protected <T extends ValueHolder>
Set<String>toNormalizedSet(String value, Type<T> type) Methods inherited from class pl.decerto.hyperon.runtime.matcher.AbstractMatcher
isBlank, isDefaultPatternMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.smartparam.engine.core.matcher.Matcher
isReverse, setReverse
-
Field Details
-
DEFAULT_SEPARATOR
public static final char DEFAULT_SEPARATOR- See Also:
-
separator
protected char separator
-
-
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
-
split
-
normalize
-
toNormalizedSet
-