|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TimePoint
Represents a time point with providing the relative time counted from some time base which depends on a particular service producing TimePoint objects (usually the time base is the moment of object creation). The time base can be calculated as follows
TimePoint tp;
Date timeBase = new Date(tp.getAbsoluteTime().getTime()-tp.getRelativeSeconds()*1000)
Date| Field Summary | |
|---|---|
static TimePoint |
NEVER
This constant stands for a special case of timepoint which can never occur. getRelativeSeconds() returns Long.MAX_VALUE and
getAbsoluteTime() returns new Date(Long.MAX_VALUE) |
| Method Summary | |
|---|---|
java.util.Date |
getAbsoluteTime()
Returns the absolute time of the time point. |
long |
getRelativeSeconds()
Returns the number of seconds from the time base. |
| Field Detail |
|---|
static final TimePoint NEVER
getRelativeSeconds() returns Long.MAX_VALUE and
getAbsoluteTime() returns new Date(Long.MAX_VALUE)
Long| Method Detail |
|---|
@NotNull java.util.Date getAbsoluteTime()
long getRelativeSeconds()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||