long
in an object. An object of type Long
contains a single
field whose type is long
.
In addition, this class provides several methods for converting a
long
to a String
and a
String
to a long
, as well as other
constants and methods useful when dealing with a
long
.
package java.lang; (>JDK1.0)public final class Long extends Number { // Constantes et champs protégés (>JDK1.0) public static final long MAX_VALUE = 0x7fffffffffffffffL; (>JDK1.0) public static final long MIN_VALUE = 0x8000000000000000L; public static final Class TYPE = Class.getPrimitiveClass("long"); // Constructeurs publics (>JDK1.0) public Long(long value); (>JDK1.0) public Long(String s) throws NumberFormatException; // Méthodes de classe publiques (>JDK1.0) public static Long getLong(String nm); (>JDK1.0) public static Long getLong(String nm, long val); (>JDK1.0) public static Long getLong(String nm, Long val); (>JDK1.0) public static long parseLong(String s) throws NumberFormatException; (>JDK1.0) public static long parseLong(String s, int radix) throws NumberFormatException; (>JDK1.0) public static String toBinaryString(long i); (>JDK1.0) public static String toHexString(long i); (>JDK1.0) public static String toOctalString(long i); (>JDK1.0) public static String toString(long i); (>JDK1.0) public static String toString(long i, int radix); (>JDK1.0) public static Long valueOf(String s) throws NumberFormatException; (>JDK1.0) public static Long valueOf(String s, int radix) throws NumberFormatException; // Méthodes d'instance publiques (>JDK1.1) public byte byteValue(); (>JDK1.0) public double doubleValue(); (>JDK1.0) public boolean equals(Object obj); (>JDK1.0) public float floatValue(); (>JDK1.0) public int hashCode(); (>JDK1.0) public int intValue(); (>JDK1.0) public long longValue(); (>JDK1.1) public short shortValue(); (>JDK1.1) public String toString(); } |
Christophe Merlet redfox@redfoxcenter.org | ©Tous droits réservés
11 septembre 1998 |