boolean in an object. An object of type
Boolean contains a single field whose type is boolean.
In addition, this class provides many methods for converting a boolean to a String and a String to a boolean, as well as other constants and methods useful when dealing with a
boolean.
package java.lang;
public final
class Boolean implements java.io.Serializable {
// Constantes et champs protégés
(>JDK1.0) public static final Boolean FALSE = new Boolean(false);
(>JDK1.0) public static final Boolean TRUE = new Boolean(true);
public static final Class TYPE = Class.getPrimitiveClass("boolean");
// Constructeurs publics
(>JDK1.0) public Boolean(boolean value);
(>JDK1.0) public Boolean(String s);
// Méthodes de classe
(>JDK1.0) public static Boolean valueOf(String s);
(>JDK1.0) public static boolean getBoolean(String name);
// Méthodes d'instances publiques
(>JDK1.0) public boolean booleanValue();
(>JDK1.0) public boolean equals(Object obj);
(>JDK1.0) public int hashCode();
(>JDK1.0) public String toString();
}
|
| Christophe Merlet redfox@redfoxcenter.org | ©Tous droits réservés
11 septembre 1998 |