抽象类 Number 是 BigDecimal、BigInteger、Byte、Double、Float、Integer、Long 和 Short 类的父类,Number 的子类必须提供将表示的数值转换为 byte、double、float、int、long 和 short 的方法。
| 方法 | 返回值 | 说明 |
|---|---|---|
| byteValue() | byte | 以 byte 形式返回指定的数值 |
| intValue() | int | 以 int 形式返回指定的数值 |
| shortValue() | short | 以 short 形式返回指定的数值 |
| longValue() | long | 以 long 形式返回指定的数值 |
| doubleValue() | double | 以 double 形式返回指定的数值 |
| floatValue() | float | 以 float 形式返回指定的数值 |
:抽象类 Number&spm=1001.2101.3001.5002&articleId=110755479&d=1&t=3&u=92faa5d457b2426c84516de6deb23857)
1202

被折叠的 条评论
为什么被折叠?



