|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jsp.jml.JmlFPNumber
JmlFPNumber wraps the primitive type double
in a Java bean. It has
a single property, value
that represents the bean's typed value.
It is designed to work more effectively in JSPs than Java primitive types
or their corresponding wrapper java.lang.*
objects. Specifically,
JmlFPNumber overcomes:
java.lang.*
objects using java.lang.*
object's value after created.
Constructor Summary | |
JmlFPNumber()
Constructs a default JmlFPNumber object. |
|
JmlFPNumber(double num)
Constructs a JmlFPNumber object whose value is
double . |
|
JmlFPNumber(java.lang.Double num)
Constructs a JmlFPNumber object whose value is
java.lang.Double . |
|
JmlFPNumber(float num)
Constructs a JmlFPNumber object whose value is
float . |
|
JmlFPNumber(java.lang.Float num)
Constructs a JmlFPNumber object whose value is
java.lang.Float . |
|
JmlFPNumber(int num)
Constructs a JmlFPNumber object whose value is
int . |
|
JmlFPNumber(java.lang.Integer num)
Constructs a JmlFPNumber object whose value is
java.lang.Integer . |
|
JmlFPNumber(JmlFPNumber num)
Constructs a JmlFPNumber object whose value is
JmlFPNumber . |
|
JmlFPNumber(java.lang.String num)
Constructs a JmlFPNumber object whose value is
java.lang.String . |
Method Summary | |
boolean |
equals(double num)
Tests whether the beans's value property is equal to
double . |
double |
getValue()
Returns the beans's value property as a
double . |
void |
setTypedValue(double num)
Sets the beans's value property to the
double . |
void |
setTypedValue(java.lang.Double num)
Sets the beans's value property to the
java.lang.Double . |
void |
setTypedValue(float num)
Sets the beans's value property to the
float . |
void |
setTypedValue(java.lang.Float num)
Sets the beans's value property to the
java.lang.Float . |
void |
setTypedValue(int num)
Sets the beans's value property to the
int . |
void |
setTypedValue(java.lang.Integer num)
Sets the beans's value property to the
java.lang.Integer . |
void |
setTypedValue(JmlFPNumber num)
Sets the beans's value property to the
JmlFPNumber . |
void |
setTypedValue(java.lang.String num)
Sets the beans's value property to the
java.lang.String . |
void |
setValue(double num)
Sets the beans's value property to the
double . |
java.lang.String |
toString()
Returns the beans's value property as a
java.lang.String . |
boolean |
typedEquals(java.lang.Double num)
Tests whether the beans's value property is equal to
java.lang.Double . |
boolean |
typedEquals(float num)
Tests whether the beans's value property is equal to
float . |
boolean |
typedEquals(java.lang.Float num)
Tests whether the beans's value property is equal to
java.lang.Float . |
boolean |
typedEquals(int num)
Tests whether the beans's value property is equal to
int . |
boolean |
typedEquals(java.lang.Integer num)
Tests whether the beans's value property is equal to
java.lang.Integer . |
boolean |
typedEquals(JmlFPNumber num)
Tests whether the beans's value property is equal to
JmlFPNumber . |
boolean |
typedEquals(java.lang.String num)
Tests whether the beans's value property is equal to
java.lang.String . |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public JmlFPNumber()
JmlFPNumber
object. The object's default
value
is 0
.public JmlFPNumber(java.lang.String num)
JmlFPNumber
object whose value is
java.lang.String
. Conversion is equivalent to
java.lang.Double.valueOf()
.public JmlFPNumber(java.lang.Integer num)
JmlFPNumber
object whose value is
java.lang.Integer
.public JmlFPNumber(int num)
JmlFPNumber
object whose value is
int
.public JmlFPNumber(java.lang.Float num)
JmlFPNumber
object whose value is
java.lang.Float
.public JmlFPNumber(float num)
JmlFPNumber
object whose value is
float
.public JmlFPNumber(java.lang.Double num)
JmlFPNumber
object whose value is
java.lang.Double
.public JmlFPNumber(double num)
JmlFPNumber
object whose value is
double
.public JmlFPNumber(JmlFPNumber num)
JmlFPNumber
object whose value is
JmlFPNumber
.Method Detail |
public double getValue()
value
property as a
double
.public void setValue(double num)
value
property to the
double
.public void setTypedValue(java.lang.String num)
value
property to the
java.lang.String
. Conversion occurs according to
the same rules as java.lang.Double.valueOf()
.public void setTypedValue(java.lang.Integer num)
value
property to the
java.lang.Integer
.public void setTypedValue(int num)
value
property to the
int
.public void setTypedValue(java.lang.Float num)
value
property to the
java.lang.Float
.public void setTypedValue(float num)
value
property to the
float
.public void setTypedValue(java.lang.Double num)
value
property to the
java.lang.Double
.public void setTypedValue(double num)
value
property to the
double
.public void setTypedValue(JmlFPNumber num)
value
property to the
JmlFPNumber
.public boolean equals(double num)
value
property is equal to
double
.public boolean typedEquals(java.lang.Integer num)
value
property is equal to
java.lang.Integer
.public boolean typedEquals(int num)
value
property is equal to
int
.public boolean typedEquals(java.lang.Float num)
value
property is equal to
java.lang.Float
.public boolean typedEquals(float num)
value
property is equal to
float
.public boolean typedEquals(java.lang.Double num)
value
property is equal to
java.lang.Double
.public boolean typedEquals(java.lang.String num)
value
property is equal to
java.lang.String
. The comparison is made after converting
the java.lang.String
to a JmlFPNumber
.public boolean typedEquals(JmlFPNumber num)
value
property is equal to
JmlFPNumber
.public java.lang.String toString()
value
property as a
java.lang.String
. The java.lang.String
is represented as java.lang.Double.toString()
.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |