public class IsBetweenMatcher extends AbstractBinaryComparableMatcher
This comparing matcher will determine if the passed value is larger or equal to the first passed argument and smaller or equal to the second passed argument, thus determining if it falls between the two values.
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 |
|---|
IsBetweenMatcher() |
| 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.