public class NumberOperand<T extends Number> extends BasicOperand<T>
Predicate
instances through number-specific operators.BasicOperand.InnerSelectReferenceValue
constructionInterceptor, queryParameter
Constructor and Description |
---|
NumberOperand(QueryParameter queryParameter)
Creates a new operand instance.
|
NumberOperand(QueryParameter queryParameter,
ConstructionInterceptor constructionInterceptor)
Creates a new operand instance.
|
Modifier and Type | Method and Description |
---|---|
Predicate |
greaterThan(T referenceValue)
Builds a predicate representing a
queryParameter > referenceValue comparison. |
Predicate |
greaterThanOrEq(T referenceValue)
Builds a predicate representing a
queryParameter >= referenceValue comparison. |
Predicate |
lessThan(T referenceValue)
Builds a predicate representing a
queryParameter < referenceValue comparison. |
Predicate |
lessThanOrEq(T referenceValue)
Builds a predicate representing a
queryParameter <= referenceValue comparison. |
public NumberOperand(QueryParameter queryParameter)
queryParameter
- the left operand for all predicates to be builtpublic NumberOperand(QueryParameter queryParameter, ConstructionInterceptor constructionInterceptor)
queryParameter
- the left operand for all predicates to be builtconstructionInterceptor
- the interceptor to be invoked upon construction of predicatespublic final Predicate lessThan(T referenceValue)
queryParameter < referenceValue
comparison.referenceValue
- the reference value used for the comparisonpublic final Predicate lessThanOrEq(T referenceValue)
queryParameter <= referenceValue
comparison.referenceValue
- the reference value used for the comparisonpublic final Predicate greaterThan(T referenceValue)
queryParameter > referenceValue
comparison.referenceValue
- the reference value used for the comparisonCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.