Package com.ocs.dynamo.filter
Class Compare
- java.lang.Object
-
- com.ocs.dynamo.filter.AbstractFilter
-
- com.ocs.dynamo.filter.Compare
-
- All Implemented Interfaces:
Filter,PropertyFilter
- Direct Known Subclasses:
Compare.Equal,Compare.Greater,Compare.GreaterOrEqual,Compare.Less,Compare.LessOrEqual
public abstract class Compare extends AbstractFilter implements PropertyFilter
A filter that compares a property value against a provided value- Author:
- bas.rutten
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCompare.EqualA filter that evaluates to true if the property value is equal to the provided valuestatic classCompare.GreaterA filter that evaluates to true if the property value is greater than the provided valuestatic classCompare.GreaterOrEqualA filter that evaluates to true if the property value is greater than or equal to the provided valuestatic classCompare.LessA filter that evaluates to true if the property value is less than the provided valuestatic classCompare.LessOrEqualA filter that evaluates to true if the property value is less than or equal to the provided valuestatic classCompare.Operation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intcompareValue(Object value1)booleanequals(Object obj)booleanevaluate(Object that)Compare.OperationgetOperation()StringgetPropertyId()ObjectgetValue()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
-
-
-
-
Method Detail
-
compareValue
protected int compareValue(Object value1)
-
getPropertyId
public String getPropertyId()
- Specified by:
getPropertyIdin interfacePropertyFilter
-
getOperation
public Compare.Operation getOperation()
-
getValue
public Object getValue()
-
toString
public String toString()
- Overrides:
toStringin classAbstractFilter
-
-