Lines Matching defs:Boolean

29  * The Boolean class wraps a value of the primitive type
31 * {@code Boolean} contains a single field whose type is
43 public final class Boolean implements java.io.Serializable,
44 Comparable<Boolean>
47 * The {@code Boolean} object corresponding to the primitive
50 public static final Boolean TRUE = new Boolean(true);
53 * The {@code Boolean} object corresponding to the primitive
56 public static final Boolean FALSE = new Boolean(false);
63 public static final Class<Boolean> TYPE = Class.getPrimitiveClass("boolean");
66 * The value of the Boolean.
76 * Allocates a {@code Boolean} object representing the
84 * @param value the value of the {@code Boolean}.
86 public Boolean(boolean value) {
91 * Allocates a {@code Boolean} object representing the value
94 * Otherwise, allocate a {@code Boolean} object representing the
96 * {@code new Boolean("True")} produces a {@code Boolean} object
98 * {@code new Boolean("yes")} produces a {@code Boolean} object
101 * @param s the string to be converted to a {@code Boolean}.
103 public Boolean(String s) {
112 * Example: {@code Boolean.parseBoolean("True")} returns {@code true}.<br>
113 * Example: {@code Boolean.parseBoolean("yes")} returns {@code false}.
125 * Returns the value of this {@code Boolean} object as a boolean
135 * Returns a {@code Boolean} instance representing the specified
137 * is {@code true}, this method returns {@code Boolean.TRUE};
138 * if it is {@code false}, this method returns {@code Boolean.FALSE}.
139 * If a new {@code Boolean} instance is not required, this method
141 * {@link #Boolean(boolean)}, as this method is likely to yield
145 * @return a {@code Boolean} instance representing {@code b}.
148 public static Boolean valueOf(boolean b) {
153 * Returns a {@code Boolean} with a value represented by the
154 * specified string. The {@code Boolean} returned represents a
159 * @return the {@code Boolean} value represented by the string.
161 public static Boolean valueOf(String s) {
180 * Returns a {@code String} object representing this Boolean's
192 * Returns a hash code for this {@code Boolean} object.
204 * {@code null} and is a {@code Boolean} object that
208 * @return {@code true} if the Boolean objects represent the
212 if (obj instanceof Boolean) {
213 return value == ((Boolean)obj).booleanValue();
246 * Compares this {@code Boolean} instance with another.
248 * @param b the {@code Boolean} instance to be compared
257 public int compareTo(Boolean b) {
265 * Boolean.valueOf(x).compareTo(Boolean.valueOf(y))