public class BooleanUtils extends Object
boolean.| Modifier and Type | Field and Description |
|---|---|
static boolean[] |
EMPTY_BOOLEAN_ARRAY
Immutable empty array.
|
| Constructor and Description |
|---|
BooleanUtils()
Constructor that should not usually be used.
|
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
toObject(boolean value)
Wraps an
boolean with an Object wrapper. |
static boolean |
toPrimitive(Object value)
Unwraps the
Boolean to retrieve the primitive boolean. |
static boolean[] |
toPrimitiveArray(Collection<?> coll)
Unwraps a
Collection to retrieve the primitive boolean. |
public static final boolean[] EMPTY_BOOLEAN_ARRAY
public BooleanUtils()
public static Boolean toObject(boolean value)
boolean with an Object wrapper.value - the primitive valuepublic static boolean toPrimitive(Object value)
Boolean to retrieve the primitive boolean.value - the Object wrapper, must not be nullNullPointerException - if the value if nullClassCastException - if the object is not Booleanpublic static boolean[] toPrimitiveArray(Collection<?> coll)
Collection to retrieve the primitive boolean.coll - the Collection of Boolean, must not be nullNullPointerException - if the collection if nullClassCastException - if any object is not BooleanCopyright © 2005-2012 Joda.org. All Rights Reserved.