Package org.apache.sis.filter
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 (¬).
-
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 org.apache.sis.filter.FilterNode
and, negate, orMethods inherited from class org.apache.sis.internal.filter.Node
createName, createType, equals, getGeometryLibrary, hashCode, toGeometryWrapper, toString, unwrap, warningMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sis.internal.geoapi.filter.LogicalOperator
getExpressionsMethods inherited from interface org.apache.sis.filter.Optimization.OnFilter
and, negate, or, recreate
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
operand
The filter to negate.
-
-
Constructor Details
-
Not
Creates a new operator.
-
-
Method Details
-
getOperatorType
Identification of the operation.- Specified by:
getOperatorTypein interfaceFilter<R>- Specified by:
getOperatorTypein interfaceLogicalOperator<R>- Returns:
- the nature of this operator.
-
symbol
protected char symbol()Symbol of the operation. -
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
Evaluates this filter on the given object. -
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.
-