|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.rgma.TimeInterval
Encapsulates a time value and the units being used.
Constructor Summary | |
TimeInterval(long value,
Units units)
Creates a new TimeInterval object. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares this object with the specified object. |
long |
getValueAs(Units units)
Gets the length of the time interval in the specified units. |
int |
hashCode()
Returns a hash code value for the object. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TimeInterval(long value, Units units)
value
- The number of time units.units
- The time units: MILLIS, SECONDS, MINUTES, HOURS, DAYS.Method Detail |
public long getValueAs(Units units)
units
- The time units: MILLIS, SECONDS, MINUTES, HOURS, DAYS.
public boolean equals(java.lang.Object obj)
obj
- Object to compare.
true
if this object and the specified object are
equal.Object.equals(java.lang.Object)
public int hashCode()
Object.hashCode()
public java.lang.String toString()
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |