|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.text.TimeFormat
public abstract class TimeFormat
A text formatter that formats time periods (durations.)
| Constructor Summary | |
|---|---|
TimeFormat()
|
|
| Method Summary | |
|---|---|
abstract String |
format(long time)
Returns a formatted time string for the specified time period. |
static TimeFormat |
getDaysInstance()
Returns a standard TimeFormat that formats using days, hours, minutes, and seconds. |
static TimeFormat |
getMillisecondsInstance()
Returns a TimeFormat that formats using days, hours, minutes, seconds, and milliseconds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeFormat()
| Method Detail |
|---|
public static TimeFormat getDaysInstance()
The format looks like: 5d 23h 12m 52s.
public static TimeFormat getMillisecondsInstance()
The format looks like: 5d 23h 12m 52s 10ms.
public abstract String format(long time)
time - the time period.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||