Package org.apache.sis.filter
Class ComparisonFilter.Between<R>
java.lang.Object
org.apache.sis.internal.filter.Node
org.apache.sis.filter.FilterNode<R>
org.apache.sis.filter.ComparisonFilter.Between<R>
- Type Parameters:
R- the type of resources used as inputs.
- All Implemented Interfaces:
Serializable,Predicate<R>,Filter<R>,BetweenComparisonOperator<R>
- Enclosing class:
- ComparisonFilter<R>
static final class ComparisonFilter.Between<R>
extends FilterNode<R>
implements BetweenComparisonOperator<R>
The
"PropertyIsBetween" filter. This can be seen as a specialization of
LogicalFilter.And when one expression is
ComparisonFilter.LessThanOrEqualTo and a second expression is ComparisonFilter.GreaterThanOrEqualTo.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ComparisonFilter.GreaterThanOrEqualTo<? super R>The first operation to apply.private static final longFor cross-version compatibility during (de)serialization.private final ComparisonFilter.LessThanOrEqualTo<? super R>The second operation to apply. -
Constructor Summary
ConstructorsConstructorDescriptionBetween(Expression<? super R, ?> expression, Expression<? super R, ?> lower, Expression<? super R, ?> upper) Creates a new filter. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<?>Returns the 3 children of this node.Expression<? super R,?> Returns the expression to be compared.List<Expression<? super R,?>> Returns the expression to be compared by this operator, together with boundaries.Expression<? super R,?> Returns the nature of the operator.Expression<? super R,?> booleanExecutes the filter operation.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, symbol, toGeometryWrapper, toString, unwrap, warning
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility during (de)serialization.- See Also:
-
lower
The first operation to apply. -
upper
The second operation to apply.
-
-
Constructor Details
-
Between
Between(Expression<? super R, ?> expression, Expression<? super R, ?> lower, Expression<? super R, ?> upper) Creates a new filter.
-
-
Method Details
-
getOperatorType
Description copied from interface:FilterReturns the nature of the operator.- Specified by:
getOperatorTypein interfaceFilter<R>- Returns:
- the nature of this operator.
-
getChildren
Returns the 3 children of this node. Sincelower.expression2is the same asupper.expression1, that repetition is omitted.- Specified by:
getChildrenin classNode- Returns:
- the children of this node, or an empty collection if none.
-
getExpressions
Returns the expression to be compared by this operator, together with boundaries.- Specified by:
getExpressionsin interfaceFilter<R>- Returns:
- the expressions used as inputs, or an empty list if none.
-
getExpression
Returns the expression to be compared.- Specified by:
getExpressionin interfaceBetweenComparisonOperator<R>
-
getLowerBoundary
- Specified by:
getLowerBoundaryin interfaceBetweenComparisonOperator<R>
-
getUpperBoundary
- Specified by:
getUpperBoundaryin interfaceBetweenComparisonOperator<R>
-
test
Executes the filter operation.
-