public class RelativeDateInterval extends java.lang.Object implements BaseDateInterval
Type#RELATIVE
.Modifier and Type | Class and Description |
---|---|
static class |
RelativeDateInterval.Operation
Operation that can be available for relative date and time moments.
|
BaseDateInterval.Type
Modifier and Type | Field and Description |
---|---|
protected RelativeDateInterval.Operation |
operation |
protected java.lang.String |
relativeDateTimeMomentName |
Constructor and Description |
---|
RelativeDateInterval(RelativeDateInterval.Operation operation,
java.lang.String relativeDateTimeMomentName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
apply(java.lang.String property) |
RelativeDateInterval.Operation |
getOperation() |
java.lang.String |
getOperationValue() |
java.lang.String |
getRelativeDateTimeMomentName() |
BaseDateInterval.Type |
getType() |
protected final RelativeDateInterval.Operation operation
protected final java.lang.String relativeDateTimeMomentName
public RelativeDateInterval(RelativeDateInterval.Operation operation, java.lang.String relativeDateTimeMomentName)
public RelativeDateInterval.Operation getOperation()
public java.lang.String getOperationValue()
public java.lang.String getRelativeDateTimeMomentName()
public BaseDateInterval.Type getType()
getType
in interface BaseDateInterval
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