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