| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv long | |
| public int | compareTo(ExtendedTime otherExtendedTime)
Implements java. Compares this object with the specified object for order. |
| pack-priv static ExtendedTime | currentTime()
Returns the current extended time with the base time initialized to System.currentTimeMillis() and the subtime initialized to zero. |
| pack-priv ExtendedTime | |
| pack-priv int | |
| public String |
| baseTime | back to summary |
|---|---|
| private final long baseTime | |
| subtime | back to summary |
|---|---|
| private final int subtime | |
| ExtendedTime | back to summary |
|---|---|
| pack-priv ExtendedTime(long baseTime, int subtime) Creates a new | |
| baseTime | back to summary |
|---|---|
| pack-priv long baseTime() Returns the base time. | |
| compareTo | back to summary |
|---|---|
| public int compareTo(ExtendedTime otherExtendedTime) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| currentTime | back to summary |
|---|---|
| pack-priv static ExtendedTime currentTime() Returns the current extended time with the base time initialized to System.currentTimeMillis() and the subtime initialized to zero. | |
| incrementSubtime | back to summary |
|---|---|
| pack-priv ExtendedTime incrementSubtime() Increments the subtime and returns the result as a new extended time. | |
| subtime | back to summary |
|---|---|
| pack-priv int subtime() Returns the subtime. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |