N - the type of the field valuepublic abstract class TemporalFunction<N extends java.time.temporal.Temporal> extends DefaultFunction<N,PredicateMetadata> 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| Modifier | Constructor and Description |
|---|---|
protected |
TemporalFunction(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(TemporalFieldInfo<N> value)
Returns a condition checking if the node value is after the field value.
|
StepCondition |
after(TemporalFunction<N> value)
Returns a condition checking if the node value is after the condition 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(TemporalFieldInfo<N> value)
Returns a condition checking if the node value is after the field value.
|
StepCondition |
afterOrEq(TemporalFunction<N> value)
Returns a condition checking if the node value is after or equals the condition value.
|
NumericFunction<java.lang.Integer> |
ageAt(N value)
Returns a numeric function that returns the age at the given value.
|
NumericFunction<java.lang.Integer> |
ageAt(java.util.function.Supplier<N> value)
Returns a numeric function that returns the age of this node value at the given supplier value.
|
NumericFunction<java.lang.Integer> |
ageAt(TemporalFieldInfo<N> value)
Returns a numeric function that returns the age of this node value at the given field value.
|
NumericFunction<java.lang.Integer> |
ageAt(TemporalFunction<N> value)
Returns a numeric function that returns the age of this node value at the given condition 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(TemporalFieldInfo<N> value)
Returns a condition checking if the node value is before the given field value.
|
StepCondition |
before(TemporalFunction<N> value)
Returns a condition checking if the node value is before the condition 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(TemporalFieldInfo<N> value)
Returns a condition checking if the node value is before the given field value.
|
StepCondition |
beforeOrEq(TemporalFunction<N> value)
Returns a condition checking if the node value is before or equals the condition 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(TemporalFunction<N> minIncluded,
TemporalFunction<N> maxExcluded)
Returns a condition checking if the node value is between the given min inclusive and max exclusive condition
values.
|
NumericFunction<java.lang.Integer> |
daysBetween(N value)
Returns a numeric function that returns the days between this node value and the given value.
|
NumericFunction<java.lang.Integer> |
daysBetween(java.util.function.Supplier<N> value)
Returns a numeric function that returns the days between this node value and the given supplier value.
|
NumericFunction<java.lang.Integer> |
daysBetween(TemporalFieldInfo<N> value)
Returns a numeric function that returns the days between this node value and the given field value.
|
NumericFunction<java.lang.Integer> |
daysBetween(TemporalFunction<N> value)
Returns a numeric function that returns the days between this node value and the given condition value.
|
StepCondition |
eq(TemporalFunction<N> value)
Returns a condition checking if the node value is equal to the given condition value.
|
TemporalFunction<N> |
minus(int value,
java.time.temporal.TemporalUnit unit)
Returns a temporal function that returns the node value minus given temporal value and unit.
|
TemporalFunction<N> |
minus(NumericFieldInfo<java.lang.Integer> value,
java.time.temporal.TemporalUnit unit)
Returns a temporal function that returns the node value minus given temporal field value and unit.
|
TemporalFunction<N> |
minus(NumericFunction<java.lang.Integer> function,
java.time.temporal.TemporalUnit unit)
Returns a temporal function that returns the node value minus given temporal field value and unit.
|
NumericFunction<java.lang.Integer> |
monthsBetween(N value)
Returns a numeric function that returns the months between this node value and the given value.
|
NumericFunction<java.lang.Integer> |
monthsBetween(java.util.function.Supplier<N> value)
Returns a numeric function that returns the months between this node value and the given supplier value.
|
NumericFunction<java.lang.Integer> |
monthsBetween(TemporalFieldInfo<N> value)
Returns a numeric function that returns the months between this node value and the given field value.
|
NumericFunction<java.lang.Integer> |
monthsBetween(TemporalFunction<N> value)
Returns a numeric function that returns the months between this node value and 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(TemporalFunction<N> minIncluded,
TemporalFunction<N> maxExcluded)
Returns a condition checking if the node value is not between the given min inclusive and max exclusive condition
values.
|
TemporalFunction<N> |
plus(int value,
java.time.temporal.TemporalUnit unit)
Returns a temporal function that returns the node value plus given temporal value and unit.
|
TemporalFunction<N> |
plus(NumericFieldInfo<java.lang.Integer> value,
java.time.temporal.TemporalUnit unit)
Returns a temporal function that returns the node value plus given temporal field value and unit.
|
TemporalFunction<N> |
plus(NumericFunction<java.lang.Integer> function,
java.time.temporal.TemporalUnit unit)
Returns a temporal function that returns the node value plus given temporal field value and unit.
|
protected abstract TemporalFunction<N> |
temporalFunction(PredicateMetadata metadata,
java.util.function.BiFunction<FieldModel,Context,java.util.Optional<N>> value) |
TemporalFunction<N> |
with(TemporalAdjuster adjuster)
Returns a temporal function that returns the node value with given temporal adjuster applied.
|
NumericFunction<java.lang.Integer> |
yearsBetween(N value)
Returns a numeric function that returns the years between this node value and the given value.
|
NumericFunction<java.lang.Integer> |
yearsBetween(java.util.function.Supplier<N> value)
Returns a numeric condition that returns the years between this node value and the given supplier value.
|
NumericFunction<java.lang.Integer> |
yearsBetween(TemporalFieldInfo<N> value)
Returns a numeric function that returns the years between this node value and the given field value.
|
NumericFunction<java.lang.Integer> |
yearsBetween(TemporalFunction<N> value)
Returns a numeric function that returns the years between this node value and the given condition value.
|
allMatch, allMatch, allMatch, anyMatch, anyMatch, anyMatch, eq, eq, eq, eq, getFunction, getMetadata, isNotNull, isNull, map, mapToInt, mapToInt, mapToString, mapToString, mapUsing, noneMatch, noneMatch, noneMatch, notEq, notEq, notEq, notEq, position, readable, tags, valueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterFunction, afterOrEqualsFunction, beforeFunction, beforeOrEqualsFunction, betweenFunction, minusFunction, plusFunction, withFunctionisUsing, markdown, markdown, readableprotected TemporalFunction(PredicateMetadata metadata, java.util.function.BiFunction<FieldModel,Context,java.util.Optional<N>> value)
protected abstract TemporalFunction<N> temporalFunction(PredicateMetadata metadata, java.util.function.BiFunction<FieldModel,Context,java.util.Optional<N>> value)
public final StepCondition eq(TemporalFunction<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(TemporalFunction<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(TemporalFunction<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(TemporalFunction<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(TemporalFunction<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(TemporalFunction<N> minIncluded, TemporalFunction<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(TemporalFunction<N> minIncluded, TemporalFunction<N> maxExcluded)
minIncluded - the min value includedmaxExcluded - the max value excludedpublic final TemporalFunction<N> with(TemporalAdjuster adjuster)
adjuster - the adjusterpublic final TemporalFunction<N> minus(int value, java.time.temporal.TemporalUnit unit)
value - the minus valueunit - the minus unitpublic final TemporalFunction<N> minus(NumericFieldInfo<java.lang.Integer> value, java.time.temporal.TemporalUnit unit)
value - the minus field valueunit - the minus unitpublic final TemporalFunction<N> minus(NumericFunction<java.lang.Integer> function, java.time.temporal.TemporalUnit unit)
function - the minus field valueunit - the minus unitpublic final TemporalFunction<N> plus(int value, java.time.temporal.TemporalUnit unit)
value - the plus valueunit - the plus unitpublic final TemporalFunction<N> plus(NumericFieldInfo<java.lang.Integer> value, java.time.temporal.TemporalUnit unit)
value - the plus field valueunit - the plus unitpublic final TemporalFunction<N> plus(NumericFunction<java.lang.Integer> function, java.time.temporal.TemporalUnit unit)
function - the plus field valueunit - the plus unitpublic final NumericFunction<java.lang.Integer> ageAt(N value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> ageAt(TemporalFieldInfo<N> value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> ageAt(TemporalFunction<N> value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> ageAt(java.util.function.Supplier<N> value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> daysBetween(N value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> daysBetween(TemporalFieldInfo<N> value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> daysBetween(TemporalFunction<N> value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> daysBetween(java.util.function.Supplier<N> value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> monthsBetween(N value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> monthsBetween(TemporalFieldInfo<N> value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> monthsBetween(TemporalFunction<N> value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> monthsBetween(java.util.function.Supplier<N> value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> yearsBetween(N value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> yearsBetween(TemporalFieldInfo<N> value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> yearsBetween(TemporalFunction<N> value)
value - the right side valuepublic final NumericFunction<java.lang.Integer> yearsBetween(java.util.function.Supplier<N> value)
value - the right side value