包装器类型学习(integer long short byte float double Boolean)

Boolean 类型

方法:

parseBoolean  //解析boolean
booleanValue //
valueOf       //转型
toString    //转字符串
hashCode      //hashicode
equals        //等于
getBoolean       
compareTo
compare

Byte 类型

方法

toString
valueOf
parseByte
decode
byteValue
shortValue
intValue
longValue
floatValue
doubleValue
hashCode
equals
compareTo
compare

Double 类型

方法:

toString
toHexString
valueOf
parseDouble
isNaN
isInfinite
isInfinite
byteValue
shortValue
intValue
longValue
floatValue
doubleValue
hashCode
equals
doubleToLongBits
compareTo
compare

Float 类

方法:

toString
toHexString
valueOf
parseFloat
isNaN
isInfinite
byteValue
shortValue
intValue
longValue
floatValue
doubleValue
hashCode
equals
floatToIntBits
compareTo
compare

Integer  类

方法:

toString
toHexString
toOctalString
toBinaryString
getChars
stringSize
parseInt
valueOf
byteValue
shortValue
intValue
longValue
floatValue
doubleValue
hashCode
equals
getInteger
decode
compareTo
compare
highestOneBit
lowestOneBit
numberOfLeadingZeros
numberOfTrailingZeros
bitCount
rotateLeft
rotateRight
reverse
signum
reverseBytes

Long  包装类

方法:

toString
toHexString
toOctalString
toBinaryString
getChars
parseLong
valueOf
decode
byteValue
shortValue
intValue
longValue
floatValue
doubleValue
hashCode
equals
getLong
compareTo
compare
highestOneBit
lowestOneBit
numberOfLeadingZeros
numberOfTrailingZeros
bitCount
rotateLeft
rotateRight
reverse
signum
reverseBytes

Short 包装类 

方法:

toString
parseShort
valueOf
decode
byteValue
shortValue
intValue
longValue
floatValue
doubleValue
hashCode
equals
compareTo
compare
reverseBytes

 

你可能感兴趣的:(jdk,分享,学习)