|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.cms.lifecycle.Duration
Utility methods for lifecycle durations.
Field Summary | |
static String |
versionId
|
Constructor Summary | |
Duration()
|
Method Summary | |
static int[] |
formatDHM(int minutes)
Formats time in minutes into a days/hours/minutes format. |
static Integer[] |
formatDHM(Integer minutes)
Formats time in minutes into a days/hours/minutes format. |
static String |
formatDuration(int minutes)
Formats a duration into a user friendly format of the form "x days, h hours, m minutes". |
static String |
formatDuration(Integer minutes)
A convenience wrapper around formatDuration(int) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
Constructor Detail |
public Duration()
Method Detail |
public static String formatDuration(Integer minutes)
formatDuration(int)
.
formatDuration(int)
public static String formatDuration(int minutes)
minutes
- the duration in minutespublic static int[] formatDHM(int minutes)
public static Integer[] formatDHM(Integer minutes)
minutes
- timespan in minutesformatDHM(int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |