public abstract class TemporalFunction<N extends java.time.temporal.Temporal> extends TemporalCondition<N>
function, metadata| Modifier | Constructor and Description |
|---|---|
protected |
TemporalFunction(DslField<N> field) |
protected |
TemporalFunction(PredicateMetadata metadata,
java.util.function.BiFunction<FieldModel,Context,java.util.Optional<N>> value) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
after, after, after, after, afterOrEq, afterOrEq, afterOrEq, afterOrEq, before, before, before, before, beforeOrEq, beforeOrEq, beforeOrEq, beforeOrEq, between, between, between, eq, notBetween, notBetween, notBetweenallMatch, 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, 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 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> 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 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