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

class UnaryFunction<R,V> extends Node
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
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
    • expression

      protected final Expression<? super R,? extends V> 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

      public final List<Expression<? super R,?>> getParameters()
      Returns the expression used as parameter by this function. Defined for Expression.getParameters() implementations.
    • getExpressions

      public final List<Expression<? super R,?>> getExpressions()
      Returns the expression used as parameter by this filter. Defined for Filter.getExpressions() implementations.
      Returns:
      a list of size 1 containing the singleton expression.
    • getChildren

      protected Collection<?> getChildren()
      Returns the expression used by this operator possibly completed in subclasses with other parameters. This is used for Node.toString(), Node.hashCode() and Node.equals(Object) implementations.
      Specified by:
      getChildren in class Node
      Returns:
      the children of this node, or an empty collection if none.