Class FilterExpressions.Element<R>

java.lang.Object
org.apache.sis.internal.geoapi.filter.FilterExpressions.Element<R>
All Implemented Interfaces:
Function<R,Boolean>, Expression<R,Boolean>
Enclosing class:
FilterExpressions<R>

private static final class FilterExpressions.Element<R> extends Object implements Expression<R,Boolean>
  • Field Details

    • filter

      private final Filter<R> filter
  • Constructor Details

    • Element

      Element(Filter<R> filter)
  • Method Details

    • getFunctionName

      public org.opengis.util.ScopedName getFunctionName()
      Description copied from interface: Expression
      Returns the name of the function to be called.
      Specified by:
      getFunctionName in interface Expression<R,Boolean>
      Returns:
      name of the function to be called.
    • getParameters

      public List<Expression<? super R,?>> getParameters()
      Description copied from interface: Expression
      Returns the list sub-expressions that will be evaluated to provide the parameters to the function.
      Specified by:
      getParameters in interface Expression<R,Boolean>
      Returns:
      the sub-expressions to be evaluated, or an empty list if none.
    • apply

      public Boolean apply(R input)
      Description copied from interface: Expression
      Evaluates the expression value based on the content of the given object.
      Specified by:
      apply in interface Expression<R,Boolean>
      Specified by:
      apply in interface Function<R,Boolean>
      Parameters:
      input - the object to be evaluated by the expression. Can be null if this expression allows null values.
      Returns:
      value computed by the expression.
    • toValueType

      public <N> Expression<R,N> toValueType(Class<N> type)
      Description copied from interface: Expression
      Returns an expression doing the same evaluation than this method, but returning results as values of the specified type.
      Specified by:
      toValueType in interface Expression<R,Boolean>
      Type Parameters:
      N - compile-time value of type.
      Parameters:
      type - desired type of expression results.
      Returns:
      expression doing the same operation this this expression but with results of the specified type.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object