|
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.Percent
public class Percent
This value type is used to define a percent value. One-hundred percent (100%) is represented by 1.0, 25% is represented by 0.25, etc.
Field Summary | |
---|---|
static Percent |
HUNDRED_PERCENT
100.0% |
static Percent |
MAX_PERCENT
Maximum value |
static Percent |
ZERO_PERCENT
0.0% |
Constructor Summary | |
---|---|
Percent(double d)
Constructs a Percent object with a given percent value in double
format. |
|
Percent(java.lang.Number n)
Constructs a Percent object with a given percent value in Number
format. |
Method Summary | |
---|---|
int |
compareTo(PrmNumber obj)
Compares two Percent 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 Percent ZERO_PERCENT
public static final Percent MAX_PERCENT
public static final Percent HUNDRED_PERCENT
Constructor Detail |
---|
public Percent(double d)
Percent
object with a given percent value in double
format. Note that one-hundred percent (100%) is represented by 1.0, 25% is represented by
0.25, etc.
d
- the percent valuepublic Percent(java.lang.Number n)
Percent
object with a given percent value in Number
format. Note that one-hundred percent (100%) is represented by 1.0, 25% is represented by
0.25, etc.
n
- the percent valueMethod Detail |
---|
public int compareTo(PrmNumber obj)
Percent
objects.
compareTo
in interface java.lang.Comparable<PrmNumber>
compareTo
in class PrmNumber
obj
- the Object
to be compared.
0
if the argument is a Percent
numerically equal
to this Percent
; a value less than 0
if the argument is a
Percent
numerically greater than this Percent
, or if the
argument is not a Percent
; and a value greater than 0
if
the argument is a Percent
numerically less than this
Percent
.
|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |