Package org.apache.sis.filter
Class UnaryFunction<R,V>
java.lang.Object
org.apache.sis.internal.filter.Node
org.apache.sis.filter.UnaryFunction<R,V>
- Type Parameters:
R
- the type of resources (e.g.Feature
) used as inputs.V
- the type of value computed by the expression.
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConvertFunction
,UnaryFunction.IsNil
,UnaryFunction.IsNull
Base class for expressions, comparators or filters performing operations on one expressions.
The nature of the operation depends on the subclass.
- Since:
- 1.1
- Version:
- 1.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
Filter operator that checks if an expression's value is nil.(package private) static final class
Filter operator that checks if an expression's value isnull
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Expression<? super R,
? extends V> The expression to be used by this operator.private static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionUnaryFunction
(Expression<? super R, ? extends V> expression) Creates a new unary operator. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<?>
Returns the expression used by this operator possibly completed in subclasses with other parameters.final List<Expression<? super R,
?>> Returns the expression used as parameter by this filter.final List<Expression<? super R,
?>> Returns the expression used as parameter by this function.Methods inherited from class org.apache.sis.internal.filter.Node
createName, createType, equals, getGeometryLibrary, hashCode, symbol, toGeometryWrapper, toString, unwrap, warning
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
expression
The expression to be used by this operator.- See Also:
-
#getExpression()
-
-
Constructor Details
-
UnaryFunction
UnaryFunction(Expression<? super R, ? extends V> expression) Creates a new unary operator.
-
-
Method Details
-
getParameters
Returns the expression used as parameter by this function. Defined forExpression.getParameters()
implementations. -
getExpressions
Returns the expression used as parameter by this filter. Defined forFilter.getExpressions()
implementations.- Returns:
- a list of size 1 containing the singleton expression.
-
getChildren
Returns the expression used by this operator possibly completed in subclasses with other parameters. This is used forNode.toString()
,Node.hashCode()
andNode.equals(Object)
implementations.- Specified by:
getChildren
in classNode
- Returns:
- the children of this node, or an empty collection if none.
-