Number 类,是八大基本类型的 父类
来源:互联网 发布:新ipad壁纸软件 编辑:程序博客网 时间:2024/06/05 23:57
public abstract class Number implements java.io.Serializable { /** * Returns the value of the specified number as an <code>int</code>. * This may involve rounding or truncation. * * @return the numeric value represented by this object after conversion * to type <code>int</code>. */ public abstract int intValue(); /** * Returns the value of the specified number as a <code>long</code>. * This may involve rounding or truncation. * * @return the numeric value represented by this object after conversion * to type <code>long</code>. */ public abstract long longValue(); /** * Returns the value of the specified number as a <code>float</code>. * This may involve rounding. * * @return the numeric value represented by this object after conversion * to type <code>float</code>. */ public abstract float floatValue(); /** * Returns the value of the specified number as a <code>double</code>. * This may involve rounding. * * @return the numeric value represented by this object after conversion * to type <code>double</code>. */ public abstract double doubleValue(); /** * Returns the value of the specified number as a <code>byte</code>. * This may involve rounding or truncation. * * @return the numeric value represented by this object after conversion * to type <code>byte</code>. * @since JDK1.1 */ public byte byteValue() { return (byte)intValue(); } /** * Returns the value of the specified number as a <code>short</code>. * This may involve rounding or truncation. * * @return the numeric value represented by this object after conversion * to type <code>short</code>. * @since JDK1.1 */ public short shortValue() { return (short)intValue(); } /** use serialVersionUID from JDK 1.0.2 for interoperability */ private static final long serialVersionUID = -8742448824652078965L;}
0 0
- Number 类,是八大基本类型的 父类
- java的八大基本类型
- Java的八大基本类型
- java的八大基本类型
- JAVA八大基本类型
- java八大基本类型
- java八大基本类型
- JAVA 八大基本类型
- 八大基本类型
- Java SE 八大基本类型
- java八大基本类型初始化
- Java八大基本类型支持的运算符
- Java八大基本类型详解与包装类
- Java基础之八大基本类型简介
- java学习 三、八大基本类型
- java八大基本类型取数范围
- java八大基本数据类型及类型转换
- 泛型类的类型为什么不能是基本
- 用Matlab画直方图
- nodejs event(有点观察者模式)
- POJ 3264 Balanced Lineup
- 【JavaScript】使用form表单实现excel下载模板
- 2017阿里一面面经
- Number 类,是八大基本类型的 父类
- HDU 5137 How Many Maos Does the Guanxi Worth
- Java如何复制对象
- eclipse实现Java源代码查看配置是如何查看JDK安装路径
- poj 1995(快速幂)
- CodeForces 4D Mysterious Present(DP)
- Centos7 yum安装nginx
- 关于爱丽丝和鲍勃的宴后演讲
- Java学习资源