src/share/classes/java/lang/Long.java
Print this page
*** 23,32 ****
--- 23,33 ----
* questions.
*/
package java.lang;
+ import java.lang.annotation.Native;
import java.math.*;
/**
* The {@code Long} class wraps a value of the primitive type {@code
* long} in an object. An object of type {@code Long} contains a
*** 52,68 ****
public final class Long extends Number implements Comparable<Long> {
/**
* A constant holding the minimum value a {@code long} can
* have, -2<sup>63</sup>.
*/
! public static final long MIN_VALUE = 0x8000000000000000L;
/**
* A constant holding the maximum value a {@code long} can
* have, 2<sup>63</sup>-1.
*/
! public static final long MAX_VALUE = 0x7fffffffffffffffL;
/**
* The {@code Class} instance representing the primitive type
* {@code long}.
*
--- 53,69 ----
public final class Long extends Number implements Comparable<Long> {
/**
* A constant holding the minimum value a {@code long} can
* have, -2<sup>63</sup>.
*/
! @Native public static final long MIN_VALUE = 0x8000000000000000L;
/**
* A constant holding the maximum value a {@code long} can
* have, 2<sup>63</sup>-1.
*/
! @Native public static final long MAX_VALUE = 0x7fffffffffffffffL;
/**
* The {@code Class} instance representing the primitive type
* {@code long}.
*
*** 1315,1325 ****
* The number of bits used to represent a {@code long} value in two's
* complement binary form.
*
* @since 1.5
*/
! public static final int SIZE = 64;
/**
* The number of bytes used to represent a {@code long} value in two's
* complement binary form.
*
--- 1316,1326 ----
* The number of bits used to represent a {@code long} value in two's
* complement binary form.
*
* @since 1.5
*/
! @Native public static final int SIZE = 64;
/**
* The number of bytes used to represent a {@code long} value in two's
* complement binary form.
*
*** 1538,1544 ****
return (i << 48) | ((i & 0xffff0000L) << 16) |
((i >>> 16) & 0xffff0000L) | (i >>> 48);
}
/** use serialVersionUID from JDK 1.0.2 for interoperability */
! private static final long serialVersionUID = 4290774380558885855L;
}
--- 1539,1545 ----
return (i << 48) | ((i & 0xffff0000L) << 16) |
((i >>> 16) & 0xffff0000L) | (i >>> 48);
}
/** use serialVersionUID from JDK 1.0.2 for interoperability */
! @Native private static final long serialVersionUID = 4290774380558885855L;
}