public class DateInterval extends java.lang.Object implements BaseDateInterval
Type#LAST
Type#NEXT
Modifier and Type | Class and Description |
---|---|
static class |
DateInterval.TimeUnit |
BaseDateInterval.Type
Modifier and Type | Field and Description |
---|---|
protected java.lang.Boolean |
includingCurrent |
protected java.lang.Integer |
number |
protected DateInterval.TimeUnit |
timeUnit |
protected BaseDateInterval.Type |
type |
Constructor and Description |
---|
DateInterval(BaseDateInterval.Type type,
java.lang.Integer number,
DateInterval.TimeUnit timeUnit,
java.lang.Boolean includingCurrent) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
apply(java.lang.String property) |
java.lang.Boolean |
getIncludingCurrent() |
java.lang.Integer |
getNumber() |
DateInterval.TimeUnit |
getTimeUnit() |
BaseDateInterval.Type |
getType() |
protected final BaseDateInterval.Type type
protected final DateInterval.TimeUnit timeUnit
protected final java.lang.Integer number
protected java.lang.Boolean includingCurrent
public DateInterval(BaseDateInterval.Type type, java.lang.Integer number, DateInterval.TimeUnit timeUnit, @Nullable java.lang.Boolean includingCurrent)
public BaseDateInterval.Type getType()
getType
in interface BaseDateInterval
public DateInterval.TimeUnit getTimeUnit()
public java.lang.Integer getNumber()
@Nullable public java.lang.Boolean getIncludingCurrent()
public java.lang.String apply(java.lang.String property)
apply
in interface BaseDateInterval
apply
in interface java.util.function.Function<java.lang.String,java.lang.String>
property
- entity property