All Packages Class Hierarchy This Package Previous Next Index
oracle.jsp.jml.JmlNumber
int
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,
JmlNumber overcomes:
java.lang.*
objects using java.lang.*
object's value after created.
JmlNumber
object.
JmlNumber
object whose value is
int
.
JmlNumber
object whose value is
java.lang.Integer
.
JmlNumber
object whose value is
JmlNumber
.
JmlNumber
object whose value is
java.lang.String
.
value
property is equal to
int
.
value
property as a
int
.
value
property to the
java.lang.Integer
.
value
property to the
JmlNumber
.
value
property to the
java.lang.String
.
value
property to the
int
.
value
property as a
java.lang.String
.
value
property is equal to
java.lang.Integer
.
value
property is equal to
JmlNumber
.
value
property is equal to
java.lang.String
.
public JmlNumber()
JmlNumber
object. The object's default
value
is 0
.
public JmlNumber(int num)
JmlNumber
object whose value is
int
.
public JmlNumber(String num)
JmlNumber
object whose value is
java.lang.String
. Conversion is equivalent to
java.lang.Integer.decode()
.
public JmlNumber(Integer num)
JmlNumber
object whose value is
java.lang.Integer
.
public JmlNumber(JmlNumber num)
JmlNumber
object whose value is
JmlNumber
.
public int getValue()
value
property as a
int
.
public void setValue(int num)
value
property to the
int
.
public void setTypedValue(String num)
value
property to the
java.lang.String
. Conversion occurs according to
the same rules as java.lang.Integer.decode()
.
public void setTypedValue(Integer num)
value
property to the
java.lang.Integer
.
public void setTypedValue(JmlNumber num)
value
property to the
JmlNumber
.
public boolean equals(int num)
value
property is equal to
int
.
public boolean typedEquals(Integer num)
value
property is equal to
java.lang.Integer
.
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 JmlNumber
.
public boolean typedEquals(JmlNumber num)
value
property is equal to
JmlNumber
.
public String toString()
value
property as a
java.lang.String
. The java.lang.String
is represented as java.lang.Integer.toString()
.
All Packages Class Hierarchy This Package Previous Next Index