final class ExtendedTime extends java.lang.Object implements java.lang.Comparable<ExtendedTime>
Modifier and Type | Field and Description |
---|---|
private long |
baseTime |
private int |
subtime |
Constructor and Description |
---|
ExtendedTime(long baseTime,
int subtime)
Creates a new
ExtendedTime . |
Modifier and Type | Method and Description |
---|---|
(package private) long |
baseTime()
Returns the base time.
|
int |
compareTo(ExtendedTime otherExtendedTime) |
(package private) static ExtendedTime |
currentTime()
Returns the current extended time with the base time initialized
to System.currentTimeMillis() and the subtime initialized to zero.
|
(package private) ExtendedTime |
incrementSubtime()
Increments the subtime and returns the result as a new extended time.
|
(package private) int |
subtime()
Returns the subtime.
|
java.lang.String |
toString() |
ExtendedTime(long baseTime, int subtime)
ExtendedTime
.static ExtendedTime currentTime()
long baseTime()
int subtime()
ExtendedTime incrementSubtime()
public int compareTo(ExtendedTime otherExtendedTime)
compareTo
in interface java.lang.Comparable<ExtendedTime>
public java.lang.String toString()
toString
in class java.lang.Object