|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jrockit.mc.flightrecorder.util.TimeRangeToolkit
public final class TimeRangeToolkit
Toolkit for manipulating and formatting ITimeRange
s
Method Summary | |
---|---|
static long |
calculateDuration(long startTimestamp,
long endTimestamp)
Calculates the the duration between a start and end time, taking into account that the start and end time stamp can be ITimeRange.NEGATIVE_INFINITY and
ITimeRange.POSITIVE_INFINITY |
static long |
cropRange(ITimeRange cropRange,
ITimeRange range)
Crops one time range with another and return the duration. |
static java.lang.String |
formatRange(ITimeRange timeRange)
Formats a time range as text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static long cropRange(ITimeRange cropRange, ITimeRange range)
cropRange
- the range to croprange
- the range it should be cropped to
public static java.lang.String formatRange(ITimeRange timeRange)
timeRange
- the time range
public static long calculateDuration(long startTimestamp, long endTimestamp)
ITimeRange.NEGATIVE_INFINITY
and
ITimeRange.POSITIVE_INFINITY
startTimestamp
- the start timeendTimestamp
- the end time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |