【JDK】IntegerField-创新互联

The Integer class wraps(包装) a value of the primitive(原始的、简陋的) type int in an object. An object of type Integer contains a single field whose type is int. 

创新互联建站服务项目包括湘东网站建设、湘东网站制作、湘东网页制作以及湘东网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,湘东网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到湘东省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!

Integer 类将基本类型 int 包装在 Integer 对象中。Integer 对象中用一个字段来存储 int。

In addition(除此之外), this class provides several methods for converting(转换) an int to a String and a String to an int, as well as(以及) other constants(常数) and methods useful when dealing with(处理) an int.

除此之外,Integer 类还提供了几个方法来进行 int 与 String 之间的转化,以及有助于程序员去处理 int 相关问题的一些常数和方法

Field MIN_VALUE
public static final int   MIN_VALUE = 0x80000000;

A constant holding(掌握) the minimum value an int can have, -2^31

存储最小 int 值的一个常数,-2^31

MAX_VALUE
public static final int   MAX_VALUE = 0x7fffffff;

A constant holding the maximum value an int can have, 2^31 - 1

存储大 int 值的一个常数,2^31 - 1

value
private final int value;

The value of the Integer

Integer 对象的值,即封装在 Integer 中的 int 值

digits
final static char[] digits = {
    '0' , '1' , '2' , '3' , '4' , '5' ,
    '6' , '7' , '8' , '9' , 'a' , 'b' ,
    'c' , 'd' , 'e' , 'f' , 'g' , 'h' ,
    'i' , 'j' , 'k' , 'l' , 'm' , 'n' ,
    'o' , 'p' , 'q' , 'r' , 's' , 't' ,
    'u' , 'v' , 'w' , 'x' , 'y' , 'z'
};

All possible chars for representing a number as a String

所有将数字转化成字符串时,可以用来代表数字的字符

SIZE
public static final int SIZE = 32;

The number of bits used to represent an int value in two's complement(补足、补充) binary form 

表示一个 int 的二进制补码所使用的比特位数量

BYTES

The number of bytes used to represent a int value in two's complement binary form

public static final int BYTES = SIZE / Byte.SIZE;

表示一个 int 的二进制补码所使用的字节数量

你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧


分享名称:【JDK】IntegerField-创新互联
本文URL:http://scyanting.com/article/ceeehi.html