public class DateIntervalEntityValue implements DateEntityRange
Date interval definition.
public 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)