|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TimeInterval
A range extension that represents a time interval.
| Method Summary | |
|---|---|
boolean |
after(TimeInterval other)
Verifies if another time interval completely follows this. |
boolean |
before(TimeInterval other)
Verifies if another time interval completely precedes this. |
Duration |
getDuration()
Returns the duration of this time interval. |
Day |
getHighDay()
|
Day |
getLowDay()
|
PhysicalDuration |
getPhysicalDuration()
|
boolean |
includes(Date d)
Verifies that a time point is in this interval |
| Methods inherited from interface it.amattioli.encapsulate.range.Range |
|---|
abutOn, contains, gap, getHigh, getLow, hasSameHigh, hasSameLow, intersect, isHighBounded, isLowBounded, mergeWith, minus, overlaps |
| Method Detail |
|---|
Duration getDuration()
UnboundedRangeException - if this interval is not boundedPhysicalDuration getPhysicalDuration()
boolean includes(Date d)
includes in interface Range<Date>d - the time point to be checked
boolean before(TimeInterval other)
other - the time interval to be checked
NullPointerException - if the parameter is nullboolean after(TimeInterval other)
other - the time interval to be checked
NullPointerException - if the parameter is nullDay getLowDay()
Day getHighDay()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||