public class DefaultIfNullFunction extends FunctionImpl
Modifier and Type | Field and Description |
---|---|
static FunctionName |
NAME |
functionName
NIL
Constructor and Description |
---|
DefaultIfNullFunction() |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Object object)
Default implementation simply returns the fallbackValue.
|
<T> T |
evaluate(Object object,
Class<T> context)
Default implementation delegates handling of context conversion to Converters utility class.
|
accept, dispatchArguments, equals, functionName, getFallbackValue, getFunctionName, getName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toString
public static final FunctionName NAME
public Object evaluate(Object object)
FunctionImpl
Please override this method to produce a value based on the provided arguments.
evaluate
in interface Expression
evaluate
in class FunctionImpl
object
- Object being evaluated; often a Featurepublic <T> T evaluate(Object object, Class<T> context)
ExpressionAbstract
Subclasses are expected to make use of the Converters utility class (as the easiest way to provide value morphing in conformance with the Filter specification).
evaluate
in interface Expression
evaluate
in class ExpressionAbstract
T
- The type of the returned object.object
- The object to evaluate the expression against.context
- The type of the resulting value of the expression.context
.Copyright © 1996–2023 Geotools. All rights reserved.