Class LogicalFilter.Not<R>
java.lang.Object
org.apache.sis.internal.filter.Node
org.apache.sis.filter.FilterNode<R>
org.apache.sis.filter.LogicalFilter.Not<R>
- Type Parameters:
R- the type of resources used as inputs.
- All Implemented Interfaces:
Serializable, Predicate<R>, Filter<R>, Optimization.OnFilter<R>, LogicalOperator<R>
- Enclosing class:
LogicalFilter<R>
static final class LogicalFilter.Not<R>
extends FilterNode<R>
implements LogicalOperator<R>, Optimization.OnFilter<R>
The negation filter (¬).
- Since:
- 1.1
- Version:
- 1.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe filter to negate.private static final longFor cross-version compatibility. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final Collection<?> Returns the singleton expression tested by this operator.Returns the singleton filter used by this operation.Identification of the operation.optimize(Optimization optimization) Tries to optimize this filter.protected charsymbol()Symbol of the operation.booleanEvaluates this filter on the given object.Methods inherited from class FilterNode
and, negate, orMethods inherited from class Node
createName, createType, equals, getGeometryLibrary, hashCode, toGeometryWrapper, toString, unwrap, warningMethods inherited from interface LogicalOperator
getExpressionsMethods inherited from interface Optimization.OnFilter
and, negate, or, recreate
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
operand
-
-
Constructor Details
-
Not
-
-
Method Details
-
getOperatorType
Identification of the operation.- Specified by:
getOperatorTypein interfaceFilter<R>- Specified by:
getOperatorTypein interfaceLogicalOperator<R>- Returns:
- the nature of this operator.
-
symbol
-
getChildren
Returns the singleton expression tested by this operator.- Specified by:
getChildrenin classNode- Returns:
- the children of this node, or an empty collection if none.
-
getOperands
Returns the singleton filter used by this operation.- Specified by:
getOperandsin interfaceLogicalOperator<R>
-
test
-
optimize
Tries to optimize this filter.- Specified by:
optimizein interfaceOptimization.OnFilter<R>- Parameters:
optimization- the simplifications or optimizations to apply on this filter.- Returns:
- the simplified or optimized filter, or
thisif no optimization has been applied.
-