Package org.apache.sis.filter
Class LogicalFilter.And<R>
java.lang.Object
org.apache.sis.internal.filter.Node
org.apache.sis.filter.FilterNode<R>
org.apache.sis.filter.LogicalFilter<R>
org.apache.sis.filter.LogicalFilter.And<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>
The "And" operation (⋀).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.filter.LogicalFilter
LogicalFilter.And<R>, LogicalFilter.Not<R>, LogicalFilter.Or<R> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longFor cross-version compatibility.Fields inherited from class org.apache.sis.filter.LogicalFilter
operands -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LogicalFilter<R>createSameType(Collection<? extends Filter<? super R>> op) Creates a new logical operator of the same kind than this operator.Identification of the operation.optimize(Optimization optimization) Tries to optimize this filter.protected charsymbol()Symbol of the operation.booleanExecutes the logical operation.Methods inherited from class org.apache.sis.filter.LogicalFilter
getChildren, getOperands, optimizeMethods 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:
-
-
Constructor Details
-
And
And(Collection<? extends Filter<? super R>> op) Creates a new operator for the given operands. -
And
Creates a new operator for the two given operands.
-
-
Method Details
-
createSameType
Creates a new logical operator of the same kind than this operator.- Specified by:
createSameTypein classLogicalFilter<R>- Parameters:
op- operands of the new operator.- Returns:
- the new operator.
-
getOperatorType
Identification of the operation.- Returns:
- the nature of this operator.
-
symbol
protected char symbol()Symbol of the operation. -
test
Executes the logical operation.- Parameters:
object- the object (often aFeatureinstance) to evaluate.- Returns:
trueif the test(s) are passed for the provided object.
-
optimize
Tries to optimize this filter.- Parameters:
optimization- the simplifications or optimizations to apply on this filter.- Returns:
- the simplified or optimized filter, or
thisif no optimization has been applied.
-