Package org.geotools.filter.function
Class DateDifferenceFunction
- Object
- 
- ExpressionAbstract
- 
- DefaultExpression
- 
- FunctionExpressionImpl
- 
- DateDifferenceFunction
 
 
 
 
- 
- All Implemented Interfaces:
- Expression,- Function,- FunctionExpression,- Factory
 
 public class DateDifferenceFunction extends FunctionExpressionImpl 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 SummaryFields Modifier and Type Field Description static FunctionNameNAME- 
Fields inherited from class FunctionExpressionImplfallback, functionName, name, params
 - 
Fields inherited from interface ExpressionNIL
 
- 
 - 
Constructor SummaryConstructors Constructor Description DateDifferenceFunction()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectevaluate(Object feature)Subclass should override, default implementation returns null.intgetArgCount()StringgetName()Gets the name of this function.- 
Methods inherited from class FunctionExpressionImplaccept, equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getParameters, hashCode, setFallbackValue, setParameters, toString
 - 
Methods inherited from class DefaultExpressionisAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
 - 
Methods inherited from class ExpressionAbstractevaluate
 - 
Methods inherited from interface Expressionevaluate
 
- 
 
- 
- 
- 
Field Detail- 
NAMEpublic static FunctionName NAME 
 
- 
 - 
Method Detail- 
getNamepublic String getName() Description copied from class:FunctionExpressionImplGets the name of this function.- Specified by:
- getNamein interface- Function
- Overrides:
- getNamein class- FunctionExpressionImpl
- Returns:
- the name of the function.
 
 - 
getArgCountpublic int getArgCount() 
 - 
evaluatepublic Object evaluate(Object feature) Description copied from class:ExpressionAbstractSubclass should override, default implementation returns null.- Specified by:
- evaluatein interface- Expression
- Overrides:
- evaluatein class- FunctionExpressionImpl
- Returns:
- default implementation returns null
 
 
- 
 
-