public class DefaultIfNullFunction extends FunctionImpl
| Modifier and Type | Field and Description |
|---|---|
static FunctionName |
NAME |
functionNameNIL| 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, toStringpublic static final FunctionName NAME
public Object evaluate(Object object)
FunctionImplPlease override this method to produce a value based on the provided arguments.
evaluate in interface Expressionevaluate in class FunctionImplobject - Object being evaluated; often a Featurepublic <T> T evaluate(Object object, Class<T> context)
ExpressionAbstractSubclasses 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 Expressionevaluate in class ExpressionAbstractT - 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–2021 Geotools. All rights reserved.