public class DateIntervalEntityValue implements DateEntityRange
Date interval definition.
DateEntityRange.DefaultImpls| Constructor and Description |
|---|
DateIntervalEntityValue(DateEntityValue date,
DateEntityValue toDate)
Date interval definition.
|
| Modifier and Type | Method and Description |
|---|---|
DateEntityValue |
component1() |
DateEntityValue |
component2() |
DateIntervalEntityValue |
copy(DateEntityValue date,
DateEntityValue toDate)
Date interval definition.
|
java.time.Duration |
duration() |
java.time.ZonedDateTime |
end(java.time.ZoneId zoneId)
Returns the end exclusive date.
Ie:
|
boolean |
equals(java.lang.Object p) |
DateEntityValue |
getDate() |
DateEntityValue |
getToDate() |
int |
hashCode() |
java.time.ZonedDateTime |
inclusiveEnd(java.time.ZoneId zoneId)
Returns the end inclusive date.
Ie:
|
java.time.ZonedDateTime |
start()
Returns the start inclusive date.
Ie
|
java.lang.String |
toString() |
duration, end, end, inclusiveEnd, inclusiveEnd, startpublic DateIntervalEntityValue(@NotNull
DateEntityValue date,
@NotNull
DateEntityValue toDate)
Date interval definition.
@NotNull public java.time.ZonedDateTime start()
Returns the start inclusive date. Ie
9h -> 9h
from 9h to 10h -> 9h
@NotNull
public java.time.ZonedDateTime inclusiveEnd(@NotNull
java.time.ZoneId zoneId)
Returns the end inclusive date. Ie:
from 9h to 10h -> 10h
from 9h to 10h00 -> 10h
9h -> 10h
this morning (4h to 12h) -> 12h
@NotNull
public java.time.ZonedDateTime end(@NotNull
java.time.ZoneId zoneId)
Returns the end exclusive date. Ie:
from 9h to 10h -> 11h
from 9h to 10h00 -> 10h01
9h -> 10h
@NotNull public java.time.Duration duration()
@NotNull public DateEntityValue getDate()
@NotNull public DateEntityValue getToDate()
@NotNull public DateEntityValue component1()
@NotNull public DateEntityValue component2()
@NotNull public DateIntervalEntityValue copy(@NotNull DateEntityValue date, @NotNull DateEntityValue toDate)
Date interval definition.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)