Package org.geotools.filter.function
Class DateDifferenceFunction
Object
ExpressionAbstract
DefaultExpression
FunctionExpressionImpl
DateDifferenceFunction
- All Implemented Interfaces:
Expression,Function,FunctionExpression,Factory
The function computes the difference between two date objects (as a-b), in the specified time unit (default to
milliseconds). Supported time units are "s", "m", "h", "d" (for seconds, minutes, hours, days respectively).
-
Field Summary
FieldsFields inherited from class FunctionExpressionImpl
fallback, functionName, name, paramsFields inherited from interface Expression
NIL -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FunctionExpressionImpl
accept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getParameters, hashCode, setFallbackValue, setParameters, toStringMethods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpressionMethods inherited from class ExpressionAbstract
evaluateMethods inherited from interface Expression
evaluate
-
Field Details
-
NAME
-
-
Constructor Details
-
DateDifferenceFunction
public DateDifferenceFunction()
-
-
Method Details
-
getName
Description copied from class:FunctionExpressionImplGets the name of this function.- Specified by:
getNamein interfaceFunction- Overrides:
getNamein classFunctionExpressionImpl- Returns:
- the name of the function.
-
getArgCount
public int getArgCount() -
evaluate
Description copied from class:ExpressionAbstractSubclass should override, default implementation returns null.- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classFunctionExpressionImpl- Returns:
- default implementation returns null
-