All Packages Class Hierarchy This Package Previous Next Index
oracle.jsp.jml.JmlFPNumber
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.
JmlFPNumber
object.
JmlFPNumber
object whose value is
java.lang.Double
.
JmlFPNumber
object whose value is
double
.
JmlFPNumber
object whose value is
java.lang.Float
.
JmlFPNumber
object whose value is
float
.
JmlFPNumber
object whose value is
int
.
JmlFPNumber
object whose value is
java.lang.Integer
.
JmlFPNumber
object whose value is
JmlFPNumber
.
JmlFPNumber
object whose value is
java.lang.String
.
value
property is equal to
double
.
value
property as a
double
.
value
property to the
java.lang.Double
.
value
property to the
double
.
value
property to the
java.lang.Float
.
value
property to the
float
.
value
property to the
int
.
value
property to the
java.lang.Integer
.
value
property to the
JmlFPNumber
.
value
property to the
java.lang.String
.
value
property to the
double
.
value
property as a
java.lang.String
.
value
property is equal to
java.lang.Double
.
value
property is equal to
float
.
value
property is equal to
java.lang.Float
.
value
property is equal to
int
.
value
property is equal to
java.lang.Integer
.
value
property is equal to
JmlFPNumber
.
value
property is equal to
java.lang.String
.
public JmlFPNumber()
JmlFPNumber
object. The object's default
value
is 0
.
public JmlFPNumber(String num)
JmlFPNumber
object whose value is
java.lang.String
. Conversion is equivalent to
java.lang.Double.valueOf()
.
public JmlFPNumber(Integer num)
JmlFPNumber
object whose value is
java.lang.Integer
.
public JmlFPNumber(int num)
JmlFPNumber
object whose value is
int
.
public JmlFPNumber(Float num)
JmlFPNumber
object whose value is
java.lang.Float
.
public JmlFPNumber(float num)
JmlFPNumber
object whose value is
float
.
public JmlFPNumber(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
.
public double getValue()
value
property as a
double
.
public void setValue(double num)
value
property to the
double
.
public void setTypedValue(String num)
value
property to the
java.lang.String
. Conversion occurs according to
the same rules as java.lang.Double.valueOf()
.
public void setTypedValue(Integer num)
value
property to the
java.lang.Integer
.
public void setTypedValue(int num)
value
property to the
int
.
public void setTypedValue(Float num)
value
property to the
java.lang.Float
.
public void setTypedValue(float num)
value
property to the
float
.
public void setTypedValue(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(Integer num)
value
property is equal to
java.lang.Integer
.
public boolean typedEquals(int num)
value
property is equal to
int
.
public boolean typedEquals(Float num)
value
property is equal to
java.lang.Float
.
public boolean typedEquals(float num)
value
property is equal to
float
.
public boolean typedEquals(Double num)
value
property is equal to
java.lang.Double
.
public boolean typedEquals(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 String toString()
value
property as a
java.lang.String
. The java.lang.String
is represented as java.lang.Double.toString()
.
All Packages Class Hierarchy This Package Previous Next Index