Classe java.lang.Double


The Double class wraps a value of the primitive type double in an object. An object of type Double contains a single field whose type is double.

In addition, this class provides several methods for converting a double to a String and a String to a double, as well as other constants and methods useful when dealing with a double.

	package java.lang;

		(>JDK1.0)public final
	class Double extends Number {

	    // Constantes et champs protégés
		(>JDK1.0)    public static final double MAX_VALUE = 1.79769313486231570e+308;
		(>JDK1.0)    public static final double MIN_VALUE = longBitsToDouble(1L);
		(>JDK1.0)    public static final double NaN = 0.0d / 0.0;
		(>JDK1.0)    public static final double NEGATIVE_INFINITY = -1.0 / 0.0;
		(>JDK1.0)    public static final double POSITIVE_INFINITY = 1.0 / 0.0;

	    // Constructeurs publiques
		(>JDK1.0)    public Double(double value);
		(>JDK1.0)    public Double(String s)
		throws NumberFormatException;

	    // Méthodes de classe publiques
		(>JDK1.1)    public static final Class	TYPE = Class.getPrimitiveClass("double");
		(>JDK1.0)    public static native long doubleToLongBits(double value);
		(>JDK1.0)    public static boolean isInfinite(double v);
		(>JDK1.0)    public static boolean isNaN(double v);
		(>JDK1.0)    public static native double longBitsToDouble(long bits);
		(>JDK1.0)    public static String toString(double d);
		(>JDK1.0)    public static Double valueOf(String s)
		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 boolean isInfinite();
		(>JDK1.0)    public boolean isNaN();
		(>JDK1.0)    public long longValue();
		(>JDK1.1)    public short shortValue();
		(>JDK1.0)    public String toString();
	}

Christophe Merlet
redfox@redfoxcenter.org
©Tous droits réservés
11 septembre 1998