All Packages Class Hierarchy This Package Previous Next Index
Class oracle.jsp.jml.JmlFPNumber
oracle.jsp.jml.JmlFPNumber
- public final class 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:
- inability to attach Java primitive types on JSP scope (objects).
- inability to declare most
java.lang.* objects using
- inability to modify a
java.lang.* object's value after created.
-
JmlFPNumber()
- Constructs a default
JmlFPNumber object.
-
JmlFPNumber(Double)
- Constructs a
JmlFPNumber object whose value is
java.lang.Double.
-
JmlFPNumber(double)
- Constructs a
JmlFPNumber object whose value is
double.
-
JmlFPNumber(Float)
- Constructs a
JmlFPNumber object whose value is
java.lang.Float.
-
JmlFPNumber(float)
- Constructs a
JmlFPNumber object whose value is
float.
-
JmlFPNumber(int)
- Constructs a
JmlFPNumber object whose value is
int.
-
JmlFPNumber(Integer)
- Constructs a
JmlFPNumber object whose value is
java.lang.Integer.
-
JmlFPNumber(JmlFPNumber)
- Constructs a
JmlFPNumber object whose value is
JmlFPNumber.
-
JmlFPNumber(String)
- Constructs a
JmlFPNumber object whose value is
java.lang.String.
-
equals(double)
- Tests whether the beans's
value property is equal to
double.
-
getValue()
- Returns the beans's
value property as a
double.
-
setTypedValue(Double)
- Sets the beans's
value property to the
java.lang.Double.
-
setTypedValue(double)
- Sets the beans's
value property to the
double.
-
setTypedValue(Float)
- Sets the beans's
value property to the
java.lang.Float.
-
setTypedValue(float)
- Sets the beans's
value property to the
float.
-
setTypedValue(int)
- Sets the beans's
value property to the
int.
-
setTypedValue(Integer)
- Sets the beans's
value property to the
java.lang.Integer.
-
setTypedValue(JmlFPNumber)
- Sets the beans's
value property to the
JmlFPNumber.
-
setTypedValue(String)
- Sets the beans's
value property to the
java.lang.String.
-
setValue(double)
- Sets the beans's
value property to the
double.
-
toString()
- Returns the beans's
value property as a
java.lang.String.
-
typedEquals(Double)
- Tests whether the beans's
value property is equal to
java.lang.Double.
-
typedEquals(float)
- Tests whether the beans's
value property is equal to
float.
-
typedEquals(Float)
- Tests whether the beans's
value property is equal to
java.lang.Float.
-
typedEquals(int)
- Tests whether the beans's
value property is equal to
int.
-
typedEquals(Integer)
- Tests whether the beans's
value property is equal to
java.lang.Integer.
-
typedEquals(JmlFPNumber)
- Tests whether the beans's
value property is equal to
JmlFPNumber.
-
typedEquals(String)
- Tests whether the beans's
value property is equal to
java.lang.String.
JmlFPNumber
public JmlFPNumber()
- Constructs a default
JmlFPNumber object. The object's default
value is 0.
JmlFPNumber
public JmlFPNumber(String num)
- Constructs a
JmlFPNumber object whose value is
java.lang.String. Conversion is equivalent to
java.lang.Double.valueOf().
JmlFPNumber
public JmlFPNumber(Integer num)
- Constructs a
JmlFPNumber object whose value is
java.lang.Integer.
JmlFPNumber
public JmlFPNumber(int num)
- Constructs a
JmlFPNumber object whose value is
int.
JmlFPNumber
public JmlFPNumber(Float num)
- Constructs a
JmlFPNumber object whose value is
java.lang.Float.
JmlFPNumber
public JmlFPNumber(float num)
- Constructs a
JmlFPNumber object whose value is
float.
JmlFPNumber
public JmlFPNumber(Double num)
- Constructs a
JmlFPNumber object whose value is
java.lang.Double.
JmlFPNumber
public JmlFPNumber(double num)
- Constructs a
JmlFPNumber object whose value is
double.
JmlFPNumber
public JmlFPNumber(JmlFPNumber num)
- Constructs a
JmlFPNumber object whose value is
JmlFPNumber.
getValue
public double getValue()
- Returns the beans's
value property as a
double.
setValue
public void setValue(double num)
- Sets the beans's
value property to the
double.
setTypedValue
public void setTypedValue(String num)
- Sets the beans's
value property to the
java.lang.String. Conversion occurs according to
the same rules as java.lang.Double.valueOf().
setTypedValue
public void setTypedValue(Integer num)
- Sets the beans's
value property to the
java.lang.Integer.
setTypedValue
public void setTypedValue(int num)
- Sets the beans's
value property to the
int.
setTypedValue
public void setTypedValue(Float num)
- Sets the beans's
value property to the
java.lang.Float.
setTypedValue
public void setTypedValue(float num)
- Sets the beans's
value property to the
float.
setTypedValue
public void setTypedValue(Double num)
- Sets the beans's
value property to the
java.lang.Double.
setTypedValue
public void setTypedValue(double num)
- Sets the beans's
value property to the
double.
setTypedValue
public void setTypedValue(JmlFPNumber num)
- Sets the beans's
value property to the
JmlFPNumber.
equals
public boolean equals(double num)
- Tests whether the beans's
value property is equal to
double.
typedEquals
public boolean typedEquals(Integer num)
- Tests whether the beans's
value property is equal to
java.lang.Integer.
typedEquals
public boolean typedEquals(int num)
- Tests whether the beans's
value property is equal to
int.
typedEquals
public boolean typedEquals(Float num)
- Tests whether the beans's
value property is equal to
java.lang.Float.
typedEquals
public boolean typedEquals(float num)
- Tests whether the beans's
value property is equal to
float.
typedEquals
public boolean typedEquals(Double num)
- Tests whether the beans's
value property is equal to
java.lang.Double.
typedEquals
public boolean typedEquals(String num)
- Tests whether the beans's
value property is equal to
java.lang.String. The comparison is made after converting
the java.lang.String to a JmlFPNumber.
typedEquals
public boolean typedEquals(JmlFPNumber num)
- Tests whether the beans's
value property is equal to
JmlFPNumber.
toString
public String toString()
- Returns the beans's
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