src/share/classes/java/lang/Integer.java
Print this page
*** 23,32 ****
--- 23,33 ----
* questions.
*/
package java.lang;
+ import java.lang.annotation.Native;
import java.util.Properties;
/**
* The {@code Integer} class wraps a value of the primitive type
* {@code int} in an object. An object of type {@code Integer}
*** 52,68 ****
public final class Integer extends Number implements Comparable<Integer> {
/**
* A constant holding the minimum value an {@code int} can
* have, -2<sup>31</sup>.
*/
! public static final int MIN_VALUE = 0x80000000;
/**
* A constant holding the maximum value an {@code int} can
* have, 2<sup>31</sup>-1.
*/
! public static final int MAX_VALUE = 0x7fffffff;
/**
* The {@code Class} instance representing the primitive type
* {@code int}.
*
--- 53,69 ----
public final class Integer extends Number implements Comparable<Integer> {
/**
* A constant holding the minimum value an {@code int} can
* have, -2<sup>31</sup>.
*/
! @Native public static final int MIN_VALUE = 0x80000000;
/**
* A constant holding the maximum value an {@code int} can
* have, 2<sup>31</sup>-1.
*/
! @Native public static final int MAX_VALUE = 0x7fffffff;
/**
* The {@code Class} instance representing the primitive type
* {@code int}.
*
*** 1293,1303 ****
* The number of bits used to represent an {@code int} value in two's
* complement binary form.
*
* @since 1.5
*/
! public static final int SIZE = 32;
/**
* The number of bytes used to represent a {@code int} value in two's
* complement binary form.
*
--- 1294,1304 ----
* The number of bits used to represent an {@code int} value in two's
* complement binary form.
*
* @since 1.5
*/
! @Native public static final int SIZE = 32;
/**
* The number of bytes used to represent a {@code int} value in two's
* complement binary form.
*
*** 1511,1517 ****
((i << 8) & 0xFF0000) |
((i << 24));
}
/** use serialVersionUID from JDK 1.0.2 for interoperability */
! private static final long serialVersionUID = 1360826667806852920L;
}
--- 1512,1518 ----
((i << 8) & 0xFF0000) |
((i << 24));
}
/** use serialVersionUID from JDK 1.0.2 for interoperability */
! @Native private static final long serialVersionUID = 1360826667806852920L;
}