Class ContainsNoneMatcher
java.lang.Object
pl.decerto.hyperon.runtime.matcher.AbstractMatcher
pl.decerto.hyperon.runtime.matcher.AbstractSetMatcher
pl.decerto.hyperon.runtime.matcher.ContainsAnyMatcher
pl.decerto.hyperon.runtime.matcher.ContainsNoneMatcher
- All Implemented Interfaces:
Matcher
Matcher treats [value] and [pattern] as sets. Checks if [value] contains all elements in [pattern].
Formally:- p - set represented by [pattern] - pattern in the matrix cell
- v - set represented by [value] - input value for level (given by levelCreator)
&- conjunction (product) of the group- {0} - empty set
Matcher returns the value of the logical sentence:
p & v = {0} - Author:
- przemek hertel
-
Field Summary
Fields inherited from class pl.decerto.hyperon.runtime.matcher.AbstractSetMatcher
DEFAULT_SEPARATOR, separator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ValueHolder>
booleanChecks that the set represented by [value] does not contain any of the elements in the set represented by [pattern].Methods inherited from class pl.decerto.hyperon.runtime.matcher.AbstractSetMatcher
matches, normalize, split, toNormalizedSetMethods 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
-
Constructor Details
-
ContainsNoneMatcher
public ContainsNoneMatcher(char separator)
-
-
Method Details
-
doMatches
Checks that the set represented by [value] does not contain any of the elements in the set represented by [pattern]. The [value] argument must be a file serialized to a string using the separator used by matcher.- Overrides:
doMatchesin classContainsAnyMatcher- Parameters:
value- serialized form of the setpattern- serialized form of the set in the cell - matching patterntype- cell type (levelu)
-