public class IsNotBetweenMatcher extends AbstractBinaryComparableMatcher
This comparing matcher will determine if the passed value is smaller or equal to the first passed argument and larger or equal to the second passed argument, thus determining if it does not fall between the two values (if they are in in ascending order themselves).
NB: This matcher does not check whether or not the two values passed are in the
right order, as a normal database wouldn't. If you need this functionality, you will need to define a new
operator and add your own matcher.
| Constructor and Description |
|---|
IsNotBetweenMatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
matches(Parameter parameter,
Comparable value,
Comparable first,
Comparable second)
Is called to determine when the two comparable items fit the criteria of this matcher
|
matchesmatchesprotected boolean matches(Parameter parameter, Comparable value, Comparable first, Comparable second)
AbstractBinaryComparableMatchermatches in class AbstractBinaryComparableMatcherparameter - the parameter for which the matching is being performedvalue - the value against which the comparison is being performedfirst - the first valuesecond - the second valueCopyright © 2014–2016. All rights reserved.