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