Class FilterLiteral

java.lang.Object
org.apache.sis.filter.FilterLiteral
All Implemented Interfaces:
Serializable, Predicate<Object>, Filter<Object>

final class FilterLiteral extends Object implements Filter<Object>, Serializable
Placeholder for GeoAPI 3.1 interfaces (not yet released). Shall not be visible in public API, as it will be deleted after next GeoAPI release.
  • Field Details

    • INCLUDE

      public static final Filter INCLUDE
    • EXCLUDE

      public static final Filter EXCLUDE
    • value

      private final boolean value
  • Constructor Details

    • FilterLiteral

      private FilterLiteral(boolean value)
  • Method Details

    • getOperatorType

      public Enum<?> getOperatorType()
      Description copied from interface: Filter
      Returns the nature of the operator.
      Specified by:
      getOperatorType in interface Filter<Object>
      Returns:
      the nature of this operator.
    • getExpressions

      public List<Expression<? super Object,?>> getExpressions()
      Description copied from interface: Filter
      Returns the expressions used as arguments for this filter.
      Specified by:
      getExpressions in interface Filter<Object>
      Returns:
      the expressions used as inputs, or an empty list if none.
    • test

      public boolean test(Object object)
      Description copied from interface: Filter
      Given an object, determines if the test(s) represented by this filter are passed.
      Specified by:
      test in interface Filter<Object>
      Specified by:
      test in interface Predicate<Object>
      Parameters:
      object - the object (often a Feature instance) to evaluate.
      Returns:
      true if the test(s) are passed for the provided object.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • readResolve

      private Object readResolve() throws ObjectStreamException
      Throws:
      ObjectStreamException