|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Number
public abstract class Number
Number is a generic superclass of all the numeric classes, including
the wrapper classes Byte, Short, Integer,
Long, Float, and Double. Also worth mentioning
are the classes in java.math.
It provides ways to convert numeric objects to any primitive.
| Constructor Summary | |
|---|---|
Number()
The basic constructor (often called implicitly). |
|
| Method Summary | |
|---|---|
byte |
byteValue()
Return the value of this Number as a byte. |
abstract double |
doubleValue()
Return the value of this Number as a float. |
abstract float |
floatValue()
Return the value of this Number as a float. |
abstract int |
intValue()
Return the value of this Number as an int. |
abstract long |
longValue()
Return the value of this Number as a long. |
short |
shortValue()
Return the value of this Number as a short. |
| 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 abstract int intValue()
Number as an int.
public abstract long longValue()
Number as a long.
public abstract float floatValue()
Number as a float.
public abstract double doubleValue()
Number as a float.
public byte byteValue()
Number as a byte.
public short shortValue()
Number as a short.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||