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
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 拼多多商家盗图怎么办 被拼多多盗图了怎么办 淘宝盗用图片被投诉怎么办 淘宝别人盗用我的图片怎么办 淘宝盗图申诉原图过大怎么办 淘宝别人举报我盗用图片怎么办 淘宝卖家被投诉盗图怎么办 淘宝卖家被投诉卖假货怎么办 淘宝买到假货卖家不承认怎么办 被投诉盗图扣2分怎么办 拼多多盗淘宝图怎么办 微信视频清理了怎么办 牛仔短裤买大了怎么办 淘宝图片打开变大了怎么办 同城换公司社保怎么办 劳务不给交社保怎么办 好多工厂外包工不交社保怎么办 外包公司没有交社保怎么办 外包公司不给交社保怎么办 银行取100万现金怎么办 给老外发警告信后怎么办 照片上传是歪的怎么办 日亚不能直邮的怎么办 电话信息被卖了怎么办 被亚马逊跟卖了怎么办 玉米出芽后土壤不够湿怎么办 雨伞请输入授权码怎么办 网页放手机端后看不了怎么办 微信收款码存在违法行为怎么办 tst优惠码密码忘了怎么办 扩展器登录不上怎么办 微信学法小程序积分不更新怎么办 开发商不给办房产证怎么办 传淘宝产品规格不匹配怎么办 刚买的手机想退怎么办 空调主机空间不足不散热怎么办 lol网速快延迟高怎么办 4g手机延迟高怎么办 天气冷鼻炎就犯怎么办 天气冷宝宝发烧了怎么办 wp手机开机忘记了密码怎么办