N - the type of the field valuepublic abstract class TemporalCondition<N extends java.time.temporal.Temporal> extends DefaultCondition<N> implements TemporalOperators<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| Constructor and Description |
|---|
TemporalCondition(DslField<N> field) |
TemporalCondition(PredicateMetadata metadata,
java.util.function.BiFunction<FieldModel,Context,java.util.Optional<N>> value) |
| Modifier and Type | Method and Description |
|---|---|
StepCondition |
after(N value)
Returns a condition checking if the node value is after the value.
|
StepCondition |
after(java.util.function.Supplier<N> value)
Returns a condition checking if the node value is after the supplier value.
|
StepCondition |
after(TemporalCondition<N> value)
Returns a condition checking if the node value is after the condition value.
|
StepCondition |
after(TemporalFieldInfo<N> value)
Returns a condition checking if the node value is after the field value.
|
StepCondition |
afterOrEq(N value)
Returns a condition checking if the node value is after or equals the value.
|
StepCondition |
afterOrEq(java.util.function.Supplier<N> value)
Returns a condition checking if the node value is after or equals the supplier value.
|
StepCondition |
afterOrEq(TemporalCondition<N> value)
Returns a condition checking if the node value is after or equals the condition value.
|
StepCondition |
afterOrEq(TemporalFieldInfo<N> value)
Returns a condition checking if the node value is after the field value.
|
StepCondition |
before(N value)
Returns a condition checking if the node value is before the given value.
|
StepCondition |
before(java.util.function.Supplier<N> value)
Returns a condition checking if the node value is before the supplier value.
|
StepCondition |
before(TemporalCondition<N> value)
Returns a condition checking if the node value is before the condition value.
|
StepCondition |
before(TemporalFieldInfo<N> value)
Returns a condition checking if the node value is before the given field value.
|
StepCondition |
beforeOrEq(N value)
Returns a condition checking if the node value is before or equals the value.
|
StepCondition |
beforeOrEq(java.util.function.Supplier<N> value)
Returns a condition checking if the node value is before or equals the supplier value.
|
StepCondition |
beforeOrEq(TemporalCondition<N> value)
Returns a condition checking if the node value is before or equals the condition value.
|
StepCondition |
beforeOrEq(TemporalFieldInfo<N> value)
Returns a condition checking if the node value is before the given field value.
|
StepCondition |
between(N minIncluded,
N maxExcluded)
Returns a condition checking if the node value is between the given min inclusive and max exclusive values.
|
StepCondition |
between(java.util.function.Supplier<N> minIncluded,
java.util.function.Supplier<N> maxExcluded)
Returns a condition checking if the node value is between the given min inclusive and max exclusive supplier
values.
|
StepCondition |
between(TemporalCondition<N> minIncluded,
TemporalCondition<N> maxExcluded)
Returns a condition checking if the node value is between the given min inclusive and max exclusive condition
values.
|
StepCondition |
eq(TemporalCondition<N> value)
Returns a condition checking if the node value is equal to the given condition value.
|
StepCondition |
notBetween(N minIncluded,
N maxExcluded)
Returns a condition checking if the node value is not between the given min inclusive and max exclusive values.
|
StepCondition |
notBetween(java.util.function.Supplier<N> minIncluded,
java.util.function.Supplier<N> maxExcluded)
Returns a condition checking if the node value is not between the given min inclusive and max exclusive supplier
values.
|
StepCondition |
notBetween(TemporalCondition<N> minIncluded,
TemporalCondition<N> maxExcluded)
Returns a condition checking if the node value is not between the given min inclusive and max exclusive condition
values.
|
allMatch, allMatch, allMatch, anyMatch, anyMatch, eq, eq, eq, isNotNull, isNull, map, mapToInt, mapToString, mapUsing, noneMatch, noneMatch, noneMatch, notEq, notEq, notEq, position, tagsgetFunction, getMetadata, readable, value, valueModelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterFunction, afterOrEqualsFunction, beforeFunction, beforeOrEqualsFunction, betweenFunction, minusFunction, plusFunction, withFunctionisUsing, markdown, markdown, readablepublic TemporalCondition(PredicateMetadata metadata, java.util.function.BiFunction<FieldModel,Context,java.util.Optional<N>> value)
public final StepCondition eq(TemporalCondition<N> value)
value - the right side valuepublic final StepCondition before(N value)
value - the right side valuepublic final StepCondition before(TemporalFieldInfo<N> value)
value - the right side valuepublic final StepCondition before(java.util.function.Supplier<N> value)
value - the right side valuepublic final StepCondition before(TemporalCondition<N> value)
value - the right side valuepublic final StepCondition beforeOrEq(N value)
value - the right side valuepublic final StepCondition beforeOrEq(TemporalFieldInfo<N> value)
value - the right side valuepublic final StepCondition beforeOrEq(java.util.function.Supplier<N> value)
value - the right side valuepublic final StepCondition beforeOrEq(TemporalCondition<N> value)
value - the right side valuepublic final StepCondition after(N value)
value - the right side valuepublic final StepCondition after(TemporalFieldInfo<N> value)
value - the right side valuepublic final StepCondition after(java.util.function.Supplier<N> value)
value - the right side valuepublic final StepCondition after(TemporalCondition<N> value)
value - the right side valuepublic final StepCondition afterOrEq(N value)
value - the right side valuepublic final StepCondition afterOrEq(TemporalFieldInfo<N> value)
value - the right side valuepublic final StepCondition afterOrEq(java.util.function.Supplier<N> value)
value - the right side valuepublic final StepCondition afterOrEq(TemporalCondition<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(java.util.function.Supplier<N> minIncluded, java.util.function.Supplier<N> maxExcluded)
minIncluded - the min value includedmaxExcluded - the max value excludedpublic final StepCondition between(TemporalCondition<N> minIncluded, TemporalCondition<N> maxExcluded)
minIncluded - the min value includedmaxExcluded - the max value excludedpublic final StepCondition notBetween(N minIncluded, N maxExcluded)
minIncluded - the min value includedmaxExcluded - the max value excludedpublic final StepCondition notBetween(java.util.function.Supplier<N> minIncluded, java.util.function.Supplier<N> maxExcluded)
minIncluded - the min value includedmaxExcluded - the max value excludedpublic final StepCondition notBetween(TemporalCondition<N> minIncluded, TemporalCondition<N> maxExcluded)
minIncluded - the min value includedmaxExcluded - the max value excluded