Package com.ocs.dynamo.filter
Class Between
- java.lang.Object
-
- com.ocs.dynamo.filter.AbstractFilter
-
- com.ocs.dynamo.filter.Between
-
- All Implemented Interfaces:
Filter,PropertyFilter
public class Between extends AbstractFilter implements PropertyFilter
A filter that matches if the property to check for falls within the defined range. This range is inclusive (i.e. boundary values count)- Author:
- bas.rutten
-
-
Constructor Summary
Constructors Constructor Description Between(String propertyId, Comparable<?> startValue, Comparable<?> endValue)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleanevaluate(Object that)Comparable<?>getEndValue()StringgetPropertyId()Comparable<?>getStartValue()inthashCode()StringtoString()-
Methods inherited from class com.ocs.dynamo.filter.AbstractFilter
and, and, and, applyFilter, between, getProperty, greater, greaterOrEqual, isEqual, isNull, less, lessOrEqual, like, like, likeIgnoreCase, not, or, or, or
-
-
-
-
Constructor Detail
-
Between
public Between(String propertyId, Comparable<?> startValue, Comparable<?> endValue)
Constructor- Parameters:
propertyId-startValue-endValue-
-
-
Method Detail
-
getPropertyId
public String getPropertyId()
- Specified by:
getPropertyIdin interfacePropertyFilter
-
getStartValue
public Comparable<?> getStartValue()
-
getEndValue
public Comparable<?> getEndValue()
-
toString
public String toString()
- Overrides:
toStringin classAbstractFilter
-
-