|
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
public class PrmNumber
This value type is used to define a Number object. It is a wrapper class of Number
.
Method Summary | |
---|---|
byte |
byteValue()
Returns the value of the specified number as a byte . |
int |
compareTo(double value)
Compare this PrmNumber object to a double . |
int |
compareTo(PrmNumber obj)
Compare two PrmNumber objects. |
double |
doubleValue()
Returns the value of the specified number as a double . |
boolean |
equals(java.lang.Object obj)
Compares this PrmNumber to the specified object. |
float |
floatValue()
Returns the value of the specified number as a float . |
int |
hashCode()
Returns a hash code for this object. |
int |
intValue()
Returns the value of the specified number as an int . |
long |
longValue()
Returns the value of the specified number as a long . |
void |
setDoubleValue(double v)
Set the value of this object with a given value. |
short |
shortValue()
Returns the value of the specified number as a short . |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public double doubleValue()
double
. This may involve
rounding.
doubleValue
in class java.lang.Number
double
.public int hashCode()
hashCode
in class java.lang.Object
public float floatValue()
float
. This may involve
rounding.
floatValue
in class java.lang.Number
float
.public long longValue()
long
. This may involve rounding
or truncation.
longValue
in class java.lang.Number
long
.public int intValue()
int
. This may involve rounding
or truncation.
intValue
in class java.lang.Number
int
.public short shortValue()
short
. This may involve rounding
or truncation.
shortValue
in class java.lang.Number
short
.public byte byteValue()
byte
. This may involve rounding
or truncation.
byteValue
in class java.lang.Number
byte
.public int compareTo(PrmNumber obj)
PrmNumber
objects.
compareTo
in interface java.lang.Comparable<PrmNumber>
obj
- the Object
to be compared.
0
if the argument is a PrmNumber
numerically
equal to this PrmNumber
; a value less than 0
if the
argument is a PrmNumber
numerically greater than this
PrmNumber
, or if the argument is not a PrmNumber
; and a
value greater than 0
if the argument is a PrmNumber
numerically less than this PrmNumber
.public int compareTo(double value)
PrmNumber
object to a double
.
value
- the double
to be compared.
0
if the argument is numerically equal to the value presented
by this PrmNumber
; a value less than 0
if the argument is
numerically greater than the value presented by this PrmNumber
; and a
value greater than 0
if the argument is numerically less than the
value presented by this PrmNumber
.public boolean equals(java.lang.Object obj)
PrmNumber
to the specified object. The result is true if
compareTo(obj) is 0
equals
in class java.lang.Object
obj
- the object to compare this PrmNumber
against.
PrmNumber
are equal; false otherwise.public void setDoubleValue(double v)
v
- the value.
|
Primavera Integration API 7.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |