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 long
For 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 char
symbol()
Symbol of the operation.boolean
Evaluates this filter on the given object.Methods inherited from class org.apache.sis.filter.FilterNode
and, negate, or
Methods inherited from class org.apache.sis.internal.filter.Node
createName, createType, equals, getGeometryLibrary, hashCode, toGeometryWrapper, toString, unwrap, warning
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.sis.internal.geoapi.filter.LogicalOperator
getExpressions
Methods 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:
getOperatorType
in interfaceFilter<R>
- Specified by:
getOperatorType
in 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:
getChildren
in classNode
- Returns:
- the children of this node, or an empty collection if none.
-
getOperands
Returns the singleton filter used by this operation.- Specified by:
getOperands
in interfaceLogicalOperator<R>
-
test
Evaluates this filter on the given object. -
optimize
Tries to optimize this filter.- Specified by:
optimize
in interfaceOptimization.OnFilter<R>
- Parameters:
optimization
- the simplifications or optimizations to apply on this filter.- Returns:
- the simplified or optimized filter, or
this
if no optimization has been applied.
-