public class WebNumber
extends java.lang.Number
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
value
The string representation of this number's value.
|
Constructor and Description |
---|
WebNumber(java.lang.String value)
Creates a new instance of WebNumber
|
Modifier and Type | Method and Description |
---|---|
double |
doubleValue()
The numeric value of the number as a
double . |
float |
floatValue()
The numeric value of the number as a
float . |
int |
intValue()
The numeric value of the number as an
int . |
long |
longValue()
The numeric value of the number as a
long . |
java.lang.String |
toString()
The string representation of this number's value.
|
public WebNumber(java.lang.String value)
value
- string representation of this number's value.public int intValue()
int
.intValue
in class java.lang.Number
int
.public long longValue()
long
.longValue
in class java.lang.Number
long
.public float floatValue()
float
.floatValue
in class java.lang.Number
float
.public double doubleValue()
double
.doubleValue
in class java.lang.Number
double
.public java.lang.String toString()
toString
in class java.lang.Object