✗
public final class Integer
extends java.lang.Number
implements java.lang.Comparable<java.lang.Integer>, java.lang.constant.Constable, java.lang.constant.ConstantDesc
Fields
- ✓public static final int BYTES = 4
- ✓public static final int MAX_VALUE = 2147483647
- ✓public static final int MIN_VALUE = -2147483648
- ✓public static final int SIZE = 32
- ✓public static final java.lang.Class<java.lang.Integer> TYPE
Constructors
- ✓@Deprecated(since="9"forRemoval=true)
public Integer(int arg0) - ✓@Deprecated(since="9"forRemoval=true)
public Integer(java.lang.String arg0) throws java.lang.NumberFormatException
Methods
- ✓public static int bitCount(int arg0)
- ✗public byte byteValue()Comparing jdk-20-ga and jdk-21+35
byteValue
public byte byteValue()Returns the value of thisIntegeras abyteafter a narrowing primitive conversion.- Overrides:
byteValuein classNumber- Returns:
- the numeric value represented by this object after conversion to type
byte. - See Java Language Specification:
- Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-5.html#jls-5.1.3.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-5.html#jls-5.1.3. Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-5.html#jls-5.1.3.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-5.html#jls-5.1.3.5.1.3 Narrowing Primitive Conversion
- ✓public static int compare(int arg0, int arg1)
- ✓public int compareTo(java.lang.Integer arg0)
- ✓public static int compareUnsigned(int arg0, int arg1)
- ✓public static int compress(int arg0, int arg1)
- ✗public static java.lang.Integer decode(java.lang.String arg0) throws java.lang.NumberFormatExceptionComparing jdk-20-ga and jdk-21+35
decode
Decodes aStringinto anInteger. Accepts decimal, hexadecimal, and octal numbers given by the following grammar:
DecimalNumeral, HexDigits, and OctalDigits are as defined in section Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-3.html#jls-3.10.1.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-3.html#jls-3.10.1.3.10.1Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-3.html#jls-3.10.1.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-3.html#jls-3.10.1. of The Java Language Specification , except that underscores are not accepted between digits.- DecodableString:
- Signopt DecimalNumeral
- Signopt
0xHexDigits - Signopt
0XHexDigits - Signopt
#HexDigits - Signopt
0OctalDigits - Sign:
-+
The sequence of characters following an optional sign and/or radix specifier ("
0x", "0X", "#", or leading zero) is parsed as by theInteger.parseIntmethod with the indicated radix (10, 16, or 8). This sequence of characters must represent a positive value or aNumberFormatExceptionwill be thrown. The result is negated if first character of the specifiedStringis the minus sign. No whitespace characters are permitted in theString.- Parameters:
nm- theStringto decode.- Returns:
- an
Integerobject holding theintvalue represented bynm - Throws:
NumberFormatException- if theStringdoes not contain a parsable integer.- See Also:
- ✓public java.util.Optional<java.lang.Integer> describeConstable()
- ✓public static int divideUnsigned(int arg0, int arg1)
- ✗public double doubleValue()Comparing jdk-20-ga and jdk-21+35
doubleValue
public double doubleValue()Returns the value of thisIntegeras adoubleafter a widening primitive conversion.- Specified by:
doubleValuein classNumber- Returns:
- the numeric value represented by this object after conversion to type
double. - See Java Language Specification:
- Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-5.html#jls-5.1.2.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-5.html#jls-5.1.2. Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-5.html#jls-5.1.2.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-5.html#jls-5.1.2.5.1.2 Widening Primitive Conversion
- ✓public boolean equals(java.lang.Object arg0)
- ✓public static int expand(int arg0, int arg1)
- ✗public float floatValue()Comparing jdk-20-ga and jdk-21+35
floatValue
public float floatValue()Returns the value of thisIntegeras afloatafter a widening primitive conversion.- Specified by:
floatValuein classNumber- Returns:
- the numeric value represented by this object after conversion to type
float. - See Java Language Specification:
- Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-5.html#jls-5.1.2.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-5.html#jls-5.1.2. Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-5.html#jls-5.1.2.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-5.html#jls-5.1.2.5.1.2 Widening Primitive Conversion
- ✓public static java.lang.Integer getInteger(java.lang.String arg0)
- ✓public static java.lang.Integer getInteger(java.lang.String arg0, int arg1)
- ✓public static java.lang.Integer getInteger(java.lang.String arg0, java.lang.Integer arg1)
- ✓public int hashCode()
- ✓public static int hashCode(int arg0)
- ✓public static int highestOneBit(int arg0)
- ✓public int intValue()
- ✗public long longValue()Comparing jdk-20-ga and jdk-21+35
longValue
public long longValue()Returns the value of thisIntegeras alongafter a widening primitive conversion.- Specified by:
longValuein classNumber- Returns:
- the numeric value represented by this object after conversion to type
long. - See Java Language Specification:
- Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-5.html#jls-5.1.2.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-5.html#jls-5.1.2. Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-5.html#jls-5.1.2.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-5.html#jls-5.1.2.5.1.2 Widening Primitive Conversion
- See Also:
- ✓public static int lowestOneBit(int arg0)
- ✓public static int max(int arg0, int arg1)
- ✓public static int min(int arg0, int arg1)
- ✓public static int numberOfLeadingZeros(int arg0)
- ✓public static int numberOfTrailingZeros(int arg0)
- ✓public static int parseInt(java.lang.CharSequence arg0, int arg1, int arg2, int arg3) throws java.lang.NumberFormatException
- ✓public static int parseInt(java.lang.String arg0) throws java.lang.NumberFormatException
- ✓public static int parseInt(java.lang.String arg0, int arg1) throws java.lang.NumberFormatException
- ✓public static int parseUnsignedInt(java.lang.CharSequence arg0, int arg1, int arg2, int arg3) throws java.lang.NumberFormatException
- ✓public static int parseUnsignedInt(java.lang.String arg0) throws java.lang.NumberFormatException
- ✓public static int parseUnsignedInt(java.lang.String arg0, int arg1) throws java.lang.NumberFormatException
- ✓public static int remainderUnsigned(int arg0, int arg1)
- ✓public java.lang.Integer resolveConstantDesc(java.lang.invoke.MethodHandles.Lookup arg0)
- ✓public static int reverse(int arg0)
- ✓public static int reverseBytes(int arg0)
- ✓public static int rotateLeft(int arg0, int arg1)
- ✓public static int rotateRight(int arg0, int arg1)
- ✗public short shortValue()Comparing jdk-20-ga and jdk-21+35
shortValue
public short shortValue()Returns the value of thisIntegeras ashortafter a narrowing primitive conversion.- Overrides:
shortValuein classNumber- Returns:
- the numeric value represented by this object after conversion to type
short. - See Java Language Specification:
- Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-5.html#jls-5.1.3.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-5.html#jls-5.1.3. Moved out of a link with destination https://docs.oracle.com/javase/specs/jls/se20/html/jls-5.html#jls-5.1.3.Moved to a link with destination https://docs.oracle.com/javase/specs/jls/se21/html/jls-5.html#jls-5.1.3.5.1.3 Narrowing Primitive Conversion
- ✓public static int signum(int arg0)
- ✓public static int sum(int arg0, int arg1)
- ✓public static java.lang.String toBinaryString(int arg0)
- ✓public static java.lang.String toHexString(int arg0)
- ✓public static java.lang.String toOctalString(int arg0)
- ✓public java.lang.String toString()
- ✓public static java.lang.String toString(int arg0)
- ✓public static java.lang.String toString(int arg0, int arg1)
- ✓public static long toUnsignedLong(int arg0)
- ✓public static java.lang.String toUnsignedString(int arg0)
- ✓public static java.lang.String toUnsignedString(int arg0, int arg1)
- ✓public static java.lang.Integer valueOf(int arg0)
- ✓public static java.lang.Integer valueOf(java.lang.String arg0) throws java.lang.NumberFormatException
- ✓public static java.lang.Integer valueOf(java.lang.String arg0, int arg1) throws java.lang.NumberFormatException
Serialized Form
✓serialVersionUID
✓1360826667806852920Serialized Fields
- ✓int value
Summary
| Elements | Comments | Descriptions | Total | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Added | Changed | Removed | Added | Changed | Removed | Added | Changed | Removed | ||
| byteValue() | 1 | 1 | ||||||||
| decode(String) | 2 | 2 | ||||||||
| doubleValue() | 1 | 1 | ||||||||
| floatValue() | 1 | 1 | ||||||||
| longValue() | 1 | 1 | ||||||||
| shortValue() | 1 | 1 | ||||||||
| Total | 7 | 7 | ||||||||