Class BetweenMatcher
java.lang.Object
io.higson.runtime.engine.matchers.BetweenMatcher
- All Implemented Interfaces:
Matcher
Range matcher, checks if value fits in range defined in pattern. Value type and pattern type must also match. It is possible to define range inclusiveness or exclusiveness, separately for each of range border value.
Between matcher has a set of default separators, that will be used to separate values for beginning and end of range. These separators are (order matters):: -
- Since:
- 0.9.0
- Author:
- Przemek Hertel
-
Constructor Summary
ConstructorsConstructorDescriptionBetweenMatcher(boolean lowerInclusive, boolean upperInclusive) BetweenMatcher(boolean lowerInclusive, boolean upperInclusive, BetweenMatcherTokenSeparator tokenSeparator) BetweenMatcher(boolean lowerInclusive, boolean upperInclusive, String separators) -
Method Summary
Modifier and TypeMethodDescription<T extends ValueHolder>
booleanCheck if value matches the pattern.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.higson.runtime.engine.core.matcher.Matcher
isReverse, setReverse
-
Constructor Details
-
BetweenMatcher
public BetweenMatcher(boolean lowerInclusive, boolean upperInclusive, BetweenMatcherTokenSeparator tokenSeparator) -
BetweenMatcher
-
BetweenMatcher
public BetweenMatcher(boolean lowerInclusive, boolean upperInclusive)
-
-
Method Details