-
- All Implemented Interfaces:
-
ai.tock.nlp.entity.Value
public interface DateEntityRange implements Value
Both DateEntityValue && DateIntervalEntityValue can be seen as date range.
-
-
Method Summary
Modifier and Type Method Description abstract ZonedDateTimestart()Returns the start inclusive date. ZonedDateTimeinclusiveEnd()Returns the end inclusive date. ZonedDateTimeinclusiveEnd(ZoneId zoneId)Returns the end inclusive date. ZonedDateTimeend()Returns the end exclusive date. abstract ZonedDateTimeend(ZoneId zoneId)Returns the end exclusive date. abstract Durationduration()-
-
Method Detail
-
start
abstract ZonedDateTime start()
Returns the start inclusive date. Ie
9h -> 9h
from 9h to 10h -> 9h
-
inclusiveEnd
ZonedDateTime inclusiveEnd()
Returns the end inclusive date.
from 9h to 10h -> 10h
from 9h to 10h00 -> 10h
9h -> 10h
-
inclusiveEnd
ZonedDateTime inclusiveEnd(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
-
end
ZonedDateTime end()
Returns the end exclusive date.
from 9h to 10h -> 11h
from 9h to 10h00 -> 10h01
9h -> 10h
this morning (4h to 12h) -> 13h
-
end
abstract ZonedDateTime end(ZoneId zoneId)
Returns the end exclusive date. Ie:
from 9h to 10h -> 11h
from 9h to 10h00 -> 10h01
9h -> 10h
-
-
-
-