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 long
For 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, ?> boolean
Executes the filter operation.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, 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:Filter
Returns the nature of the operator.- Specified by:
getOperatorType
in interfaceFilter<R>
- Returns:
- the nature of this operator.
-
getChildren
Returns the 3 children of this node. Sincelower.expression2
is the same asupper.expression1
, that repetition is omitted.- Specified by:
getChildren
in 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:
getExpressions
in interfaceFilter<R>
- Returns:
- the expressions used as inputs, or an empty list if none.
-
getExpression
Returns the expression to be compared.- Specified by:
getExpression
in interfaceBetweenComparisonOperator<R>
-
getLowerBoundary
- Specified by:
getLowerBoundary
in interfaceBetweenComparisonOperator<R>
-
getUpperBoundary
- Specified by:
getUpperBoundary
in interfaceBetweenComparisonOperator<R>
-
test
Executes the filter operation.
-