public class BooleanUtils
extends java.lang.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 java.lang.Boolean |
toObject(boolean value)
Wraps an
boolean with an Object wrapper. |
static boolean |
toPrimitive(java.lang.Object value)
Unwraps the
Boolean to retrieve the primitive boolean . |
static boolean[] |
toPrimitiveArray(java.util.Collection<?> coll)
Unwraps a
Collection to retrieve the primitive boolean . |
public static final boolean[] EMPTY_BOOLEAN_ARRAY
public static java.lang.Boolean toObject(boolean value)
boolean
with an Object wrapper.value
- the primitive valuepublic static boolean toPrimitive(java.lang.Object value)
Boolean
to retrieve the primitive boolean
.value
- the Object wrapper, must not be nulljava.lang.NullPointerException
- if the value if nulljava.lang.ClassCastException
- if the object is not Boolean
public static boolean[] toPrimitiveArray(java.util.Collection<?> coll)
Collection
to retrieve the primitive boolean
.coll
- the Collection of Boolean, must not be nulljava.lang.NullPointerException
- if the collection if nulljava.lang.ClassCastException
- if any object is not Boolean
Copyright © 2005–2018 Joda.org. All rights reserved.