|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.joda.primitives.BooleanUtils
public class BooleanUtils
Provides utility methods and constants for boolean
.
Field Summary | |
---|---|
static boolean[] |
EMPTY_BOOLEAN_ARRAY
Immutable empty array. |
Constructor Summary | |
---|---|
BooleanUtils()
Constructor that should not usually be used. |
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean[] EMPTY_BOOLEAN_ARRAY
Constructor Detail |
---|
public BooleanUtils()
Method Detail |
---|
public static Boolean toObject(boolean value)
boolean
with an Object wrapper.
value
- the primitive value
public static boolean toPrimitive(Object value)
Boolean
to retrieve the primitive boolean
.
value
- the Object wrapper, must not be null
NullPointerException
- if the value if null
ClassCastException
- if the object is not Boolean
public static boolean[] toPrimitiveArray(Collection<?> coll)
Collection
to retrieve the primitive boolean
.
coll
- the Collection of Boolean, must not be null
NullPointerException
- if the collection if null
ClassCastException
- if any object is not Boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |