|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.fabric.da.types.Duration
public class Duration
Represents a duration of time. Durations are comparable to one-another, and independent of beginning moment, locale or timezone. A duration is the difference between two moments. The current implementation has a maximum precision of 1 millisecond, but future versions may support finer granularity.
Instances of this type are immutable, and therefore thread-safe.
Constructor Summary | |
---|---|
Duration(long durationInMillis)
Creates an object representing a duration that spans the specified number of milliseconds. |
Method Summary | |
---|---|
long |
getDurationInMillis()
Returns this duration in milliseconds. |
java.lang.String |
toString()
Current implementation prints the duration in milliseconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Duration(long durationInMillis)
durationInMillis
- a non-negative duration in milliseconds. A zero simply indicates
that the duration spans less that 500 microseconds.Method Detail |
---|
public long getDurationInMillis()
public java.lang.String toString()
Object.toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |