|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Number
com.primavera.common.value.PrmNumber
com.primavera.common.value.Duration
public class Duration
This value type is used to define a duration.
Field Summary | |
---|---|
static Duration |
MAX_DURATION
Maximum duration value |
static int |
MINUTES_IN_HOUR
Number of minutes in an hour |
static Duration |
ZERO_DURATION
Zero duration value |
Constructor Summary | |
---|---|
Duration(double d)
Constructs a Duration object with a given duration value in double
format. |
|
Duration(java.lang.Number n)
Constructs a Duration object with a given duration value in Number
format. |
Method Summary | |
---|---|
int |
compareTo(PrmNumber obj)
Compares two Duration objects. |
Methods inherited from class com.primavera.common.value.PrmNumber |
---|
byteValue, compareTo, doubleValue, equals, floatValue, hashCode, intValue, longValue, setDoubleValue, shortValue, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Duration ZERO_DURATION
public static final Duration MAX_DURATION
public static final int MINUTES_IN_HOUR
Constructor Detail |
---|
public Duration(double d)
Duration
object with a given duration value in double
format.
d
- the duration valuepublic Duration(java.lang.Number n)
Duration
object with a given duration value in Number
format.
n
- the duration valueMethod Detail |
---|
public int compareTo(PrmNumber obj)
Duration
objects.
compareTo
in interface java.lang.Comparable<PrmNumber>
compareTo
in class PrmNumber
obj
- the Object
to be compared.
0
if the argument is a Duration
numerically
equal to this Duration
; a value less than 0
if the
argument is a Duration
numerically greater than this
Duration
, or if the argument is not a Duration
; and a
value greater than 0
if the argument is a Duration
numerically less than this Duration
.
|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |