Classe java.lang.Integer


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

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

	package java.lang;

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

	    // Constantes et champs protégés
		(>JDK1.0)    public static final int   MIN_VALUE = 0x80000000;
		(>JDK1.0)    public static final int   MAX_VALUE = 0x7fffffff;
	    public static final Class	TYPE = Class.getPrimitiveClass("int");

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

	    // Méthodes de classe publiques
		(>JDK1.0)    public static int parseInt(String s)
		throws NumberFormatException;
		(>JDK1.0)    public static int parseInt(String s, int radix) 
		throws NumberFormatException;
		(>JDK1.0)    public static String toBinaryString(int i);
		(>JDK1.0)    public static String toHexString(int i);
		(>JDK1.0)    public static String toOctalString(int i);
		(>JDK1.0)    public static String toString(int i);
		(>JDK1.0)    public static String toString(int i, int radix);
		(>JDK1.0)    public static Integer valueOf(String s, int radix)
		throws NumberFormatException;
		(>JDK1.0)    public static Integer valueOf(String s)
		throws NumberFormatException;

	    // Méthodes d'instance publiques
		(>JDK1.1)    public byte byteValue();
		(>JDK1.1)    public static Integer decode(String nm)
		throws NumberFormatException;
		(>JDK1.0)    public double doubleValue();
		(>JDK1.0)    public boolean equals(Object obj);
		(>JDK1.0)    public float floatValue();
		(>JDK1.0)    public static Integer getInteger(String nm);
		(>JDK1.0)    public static Integer getInteger(String nm, int val);
		(>JDK1.0)    public static Integer getInteger(String nm, Integer val);
		(>JDK1.0)    public int hashCode();
		(>JDK1.0)    public int intValue();
		(>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