|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.base.time.Duration
public final class Duration
A duration is specified in either months or seconds.
| Constructor Summary | |
|---|---|
Duration(int months)
Deprecated. Create a duration specfied by a specific number of months |
|
Duration(long milliseconds)
Deprecated. Create a duration specfied by a specific number of milliseconds |
|
Duration(String value)
Deprecated. Create a duration of time from two of the basic formats defined by the ISO 8601 standard. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Deprecated. |
long |
getMilliseconds()
Deprecated. |
long |
getMonths()
Deprecated. |
int |
hashCode()
Deprecated. |
String |
toString()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Duration(String value)
throws ServiceException
"PnM" or "PTn.uS"
^ ^ ^^ ^ ^
n 1 or more digits [>= 0]
u 3-digit milliseconds [0..999]
ServiceExceptionpublic Duration(int months)
months - The duration expressed in monthspublic Duration(long milliseconds)
milliseconds - The duration expressed in milliseconds| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectpublic String toString()
toString in class Objectpublic long getMilliseconds()
public long getMonths()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||