public class BooleanUtils
extends Object
Provides extra functionality for boolean primitives.
| Constructor and Description |
|---|
BooleanUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Boolean[] |
asObjectArray(boolean[] array)
Converts from a
boolean array to a Boolean array. |
static boolean[] |
asPrimitiveArray(Boolean[] array)
Converts from a
Boolean array to a boolean array. |
static int[] |
find(boolean[] array,
boolean value,
Constants.SearchType searchType) |
static boolean[] |
select(boolean[] array,
int[] indexes) |
static boolean[] |
toArray(Collection<Boolean> list)
Converts a collection (
List, Set...) of Boolean objects to a boolean array. |
static List<Boolean> |
toList(boolean[] array)
Converts from a
boolean array to a list. |
public static Boolean[] asObjectArray(boolean[] array)
boolean array to a Boolean array.array - boolean arrayBoolean arraypublic static boolean[] asPrimitiveArray(Boolean[] array)
Boolean array to a boolean array.array - Boolean arrayboolean arraypublic static boolean[] select(boolean[] array,
int[] indexes)
public static int[] find(boolean[] array,
boolean value,
Constants.SearchType searchType)
public static boolean[] toArray(Collection<Boolean> list)
List, Set...) of Boolean objects to a boolean array.list - Input listboolean arraypublic static List<Boolean> toList(boolean[] array)
boolean array to a list.array - Input arrayBoolean objects