|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.devexperts.qd.util.TimePeriod
public class TimePeriod
Value class for period of time with support for ISO8601 duration format.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
long |
getTime()
Returns value in milliseconds. |
int |
hashCode()
|
java.lang.String |
toString()
|
static TimePeriod |
valueOf(long value)
Returns TimePeriod with value milliseconds. |
static TimePeriod |
valueOf(java.lang.String value)
Returns TimePeriod represented with a given string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static TimePeriod valueOf(long value)
TimePeriod
with value milliseconds.
value
- value in milliseconds
TimePeriod
with value milliseconds.public static TimePeriod valueOf(java.lang.String value) throws InvalidFormatException
TimePeriod
represented with a given string.
Allowable format is ISO8601 duration, but there are some simplifications and modifications available:
value
- string representation
TimePeriod
represented with a given string.
InvalidFormatException
- if cannot parse valuepublic java.lang.String toString()
toString
in class java.lang.Object
public long getTime()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |