public class BooleanUtilities extends java.lang.Object
Boolean
objects.Modifier and Type | Method and Description |
---|---|
static java.lang.Boolean |
valueOf(boolean b)
Returns the object equivalent of the boolean primitive.
|
public static java.lang.Boolean valueOf(boolean b)
A similar method is provided by the Boolean class in JDK 1.4, but you can use this one to remain compatible with earlier JDKs.
b
- the boolean value.Boolean.TRUE
or Boolean.FALSE
.