N - the type of the field valuepublic abstract class NumericCondition<N extends java.lang.Number> extends DefaultCondition<N> implements NumericOperators<N>
It contains a DslField to get the value from the model, a PredicateMetadata to describe this node,
and a BiFunction to take the value from the model and return an optional value.
function, metadata| Modifier | Constructor and Description |
|---|---|
protected |
NumericCondition(DslField<N> field) |
protected |
NumericCondition(PredicateMetadata metadata,
java.util.function.BiFunction<FieldModel,Context,java.util.Optional<N>> value) |
| Modifier and Type | Method and Description |
|---|---|
StepCondition |
between(N minIncluded,
N maxExcluded)
Returns a step condition checking if the node value is between the given min included and max excluded values.
|
StepCondition |
between(NumericFieldInfo<N> minIncluded,
NumericFieldInfo<N> maxExcluded)
Returns a step condition checking if the node value is between the given min included and max excluded field
values.
|
StepCondition |
greaterOrEquals(N value)
Returns a step condition checking if the node value is greater or equals the given value.
|
StepCondition |
greaterOrEquals(NumericFieldInfo<N> value)
Returns a step condition checking if the node value is greater or equals the given field value.
|
StepCondition |
greaterThan(N value)
Returns a step condition checking if the node value is greater than the given value.
|
StepCondition |
greaterThan(NumericFieldInfo<N> value)
Returns a step condition checking if the node value is greater than the given field value.
|
StepCondition |
lesserOrEquals(N value)
Returns a step condition checking if the node value is lesser or equals the given value.
|
StepCondition |
lesserOrEquals(NumericFieldInfo<N> value)
Returns a step condition checking if the node value is lesser or equals the given field value.
|
StepCondition |
lesserThan(N value)
Returns a step condition checking if the node value is lesser than the given value.
|
StepCondition |
lesserThan(NumericFieldInfo<N> value)
Returns a step condition checking if the node value is lesser than the given field value.
|
allMatch, allMatch, allMatch, anyMatch, anyMatch, eq, eq, eq, isNotNull, isNull, map, mapToInt, mapToString, mapUsing, noneMatch, noneMatch, noneMatch, notEq, notEq, notEqgetFunction, getMetadata, readable, value, valueModelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgreaterOrEqualsFunction, greaterThanFunction, identity, lesserOrEqualsFunction, lesserThanFunction, minFunction, sumFunction, timesFunctionprotected NumericCondition(PredicateMetadata metadata, java.util.function.BiFunction<FieldModel,Context,java.util.Optional<N>> value)
public final StepCondition lesserThan(N value)
value - the right side valuepublic final StepCondition lesserThan(NumericFieldInfo<N> value)
value - the right side valuepublic final StepCondition lesserOrEquals(N value)
value - the right side valuepublic final StepCondition lesserOrEquals(NumericFieldInfo<N> value)
value - the right side valuepublic final StepCondition greaterThan(N value)
value - the right side valuepublic final StepCondition greaterThan(NumericFieldInfo<N> value)
value - the right side valuepublic final StepCondition greaterOrEquals(N value)
value - the right side valuepublic final StepCondition greaterOrEquals(NumericFieldInfo<N> value)
value - the right side valuepublic final StepCondition between(N minIncluded, N maxExcluded)
minIncluded - the min value includedmaxExcluded - the max value excludedpublic final StepCondition between(NumericFieldInfo<N> minIncluded, NumericFieldInfo<N> maxExcluded)
minIncluded - the min value includedmaxExcluded - the max value excluded