Number
Number
java.lang.NumberNumber类是Byte, Integer, Double, Float, Short, Long包装类的父类, Number继承自Object
常用方法
| Modifier and Type | Method and Description |
|---|---|
byte |
byteValue() 返回指定号码作为值 byte ,这可能涉及舍入或截断。 |
abstract double |
doubleValue() 返回指定数字的值为 double ,可能涉及四舍五入。 |
abstract float |
floatValue() 返回指定数字的值为 float ,可能涉及四舍五入。 |
abstract int |
intValue() 返回指定号码作为值 int ,这可能涉及舍入或截断。 |
abstract long |
longValue() 返回指定数字的值为 long ,可能涉及四舍五入或截断。 |
short |
shortValue() 返回指定号码作为值 short ,这可能涉及舍入或截断。 |
浙公网安备 33010602011771号