|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Number
|
+--com.jdc.math.Number
Interface Number represents a decimal or integer number. The
Number interface provides basic operations for conversion to primitive
types as well as checking for a valid number.
Number,
Serialized Form| Field Summary |
| Fields inherited from interface com.jdc.util.DefaultLocale |
DEFAULT_LOCALE |
| Constructor Summary | |
Number()
|
|
| Method Summary | |
double |
doubleValue()
Returns the value of the specified number as a double. |
float |
floatValue()
Returns the value of the specified number as a float. |
int |
intValue()
Returns the value of the specified number as an int. |
abstract boolean |
isNaN()
Returns true if the value represented by this Number
object is Not-a-Number, i.e. |
long |
longValue()
Returns the value of the specified number as a long. |
| Methods inherited from class java.lang.Number |
byteValue, shortValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Number()
| Method Detail |
public double doubleValue()
doubleValue in class Numberpublic float floatValue()
floatValue in class Numberpublic int intValue()
intValue in class Numberpublic abstract boolean isNaN()
true if the value represented by this Number
object is Not-a-Number, i.e. NaN.
True if the value is Not-a-Number, i.e. NaN.
False if the value is a valid number.public long longValue()
longValue in class Number
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||