|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TimeInterval
Represents a time interval defined by two TimePoint objects.
Both time points objects have the same time base for counting relative time.
This means that getDurationSeconds() is always equal to
(getEndPoint().getRelativeSeconds() - getStartPoint().getRelativeSeconds())
if the second timepoint isn't null.
The time base for time points is specific to a partucular service that returns such an interval.
The start timepoint may be infinite (see TimePoint.NEVER).
In this case the end timepoint is always null.
TimePoint| Method Summary | |
|---|---|
java.lang.Long |
getDurationSeconds()
Returns the difference between the starting and ending points in seconds. |
TimePoint |
getEndPoint()
Returns the ending point for the interval. |
TimePoint |
getStartPoint()
Returns the starting point for the interval. |
| Method Detail |
|---|
@NotNull TimePoint getStartPoint()
@Nullable TimePoint getEndPoint()
@Nullable java.lang.Long getDurationSeconds()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||