|
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.UnitsPerTime
public class UnitsPerTime
This value type is used to define a unit per time.
Field Summary | |
---|---|
static UnitsPerTime |
MAX_UNITSPERTIME
Maximum value |
static UnitsPerTime |
ONE_UNITSPERTIME
1.0 value |
static UnitsPerTime |
ZERO_UNITSPERTIME
Zero value |
Constructor Summary | |
---|---|
UnitsPerTime(double d)
Constructs a UnitsPerTime object with a given value in double
format. |
|
UnitsPerTime(java.lang.Number n)
Constructs a UnitsPerTime object with a given value in Number
format. |
Method Summary | |
---|---|
int |
compareTo(PrmNumber obj)
Compares two UnitsPerTime objects. |
double |
getValue()
Gets the value represented by this object |
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 UnitsPerTime ZERO_UNITSPERTIME
public static final UnitsPerTime ONE_UNITSPERTIME
public static final UnitsPerTime MAX_UNITSPERTIME
Constructor Detail |
---|
public UnitsPerTime(double d)
UnitsPerTime
object with a given value in double
format.
d
- the units value per time.public UnitsPerTime(java.lang.Number n)
UnitsPerTime
object with a given value in Number
format.
n
- the units value per time.Method Detail |
---|
public int compareTo(PrmNumber obj)
UnitsPerTime
objects.
compareTo
in interface java.lang.Comparable<PrmNumber>
compareTo
in class PrmNumber
obj
- the Object
to be compared.
0
if the argument is a UnitsPerTime
numerically
equal to this UnitsPerTime
; a value less than 0
if the
argument is a UnitsPerTime
numerically greater than this
UnitsPerTime
, or if the argument is not a UnitsPerTime
;
and a value greater than 0
if the argument is a
UnitsPerTime
numerically less than this UnitsPerTime
.public double getValue()
|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |