public class RelativeTimeRangeConfig extends java.lang.Object implements ConfigObj
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OFFSET |
static java.lang.String |
WINDOW |
| Constructor and Description |
|---|
RelativeTimeRangeConfig(java.time.Duration window,
java.time.Duration offset)
Constructor with all parameters
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.Optional<java.time.Duration> |
getOffset() |
java.time.Duration |
getWindow() |
int |
hashCode() |
java.lang.String |
toString() |
public static final java.lang.String WINDOW
public static final java.lang.String OFFSET
public RelativeTimeRangeConfig(java.time.Duration window,
java.time.Duration offset)
window - number of days/hours from the reference date, reference date = current time - offsetoffset - number of days/hours to look back relative to the current timestamppublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.time.Duration getWindow()
public java.util.Optional<java.time.Duration> getOffset()