public class NumberValueImpl<T,U extends Number> extends BasicValueImpl<T,U> implements NumberValue<T>
Constructor and Description |
---|
NumberValueImpl(String name,
ValueConverter<T,U> valueConverter,
NumberOperand<T> numberValueOperand,
boolean supportsOrderBy) |
Modifier and Type | Method and Description |
---|---|
Predicate |
greaterThan(T referenceValue)
Builds a predicate for a
queryParameter > referenceValue comparison. |
Predicate |
greaterThanOrEq(T referenceValue)
Builds a predicate for a
queryParameter >= referenceValue comparison. |
Predicate |
lessThan(T referenceValue)
Builds a predicate for a
queryParameter < referenceValue comparison. |
Predicate |
lessThanOrEq(T referenceValue)
Builds a predicate for a
queryParameter <= referenceValue comparison. |
eq, eq, eq, exists, getQueryParameter, in, in, in, in, in, in, in, isNotNull, isNull, notEq, notIn, notIn, notIn, notIn, notIn, orderAsc, orderDesc
getName, getValueConverter
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getValueConverter
public NumberValueImpl(String name, ValueConverter<T,U> valueConverter, NumberOperand<T> numberValueOperand, boolean supportsOrderBy)
public Predicate lessThan(T referenceValue)
NumberOperand
Builds a predicate for a queryParameter < referenceValue
comparison.
lessThan
in interface NumberOperand<T>
referenceValue
- the reference value used for the comparisonpublic Predicate lessThanOrEq(T referenceValue)
NumberOperand
Builds a predicate for a queryParameter <= referenceValue
comparison.
lessThanOrEq
in interface NumberOperand<T>
referenceValue
- the reference value used for the comparisonpublic Predicate greaterThan(T referenceValue)
NumberOperand
Builds a predicate for a queryParameter > referenceValue
comparison.
greaterThan
in interface NumberOperand<T>
referenceValue
- the reference value used for the comparisonpublic Predicate greaterThanOrEq(T referenceValue)
NumberOperand
Builds a predicate for a queryParameter >= referenceValue
comparison.
greaterThanOrEq
in interface NumberOperand<T>
referenceValue
- the reference value used for the comparisonCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.