public interface PeriodValue
DateValues. The start is inclusive, and the
end is exclusive. The end must be on or after the start. When the start and
end are the same, the period is zero width, i.e. contains zero seconds.| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(PeriodValue pv)
true iff this period completely contains the given period.
|
DateValue |
end()
the end of the period.
|
boolean |
intersects(PeriodValue pv)
true iff this period overlaps the given period.
|
DateValue |
start()
the start of the period.
|
DateValue start()
DateValue end()
start(), and
(start() instanceof TimeValue) ==
(end() instanceof TimeValue).boolean intersects(PeriodValue pv)
pv - not null.boolean contains(PeriodValue pv)
pv - not null.