| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of the array to return. T> T[] | Returns: an array containing the given arguments.the values to store in the array. values)Returns an array containing the given arguments. |
| public static int[] | Returns: an int[].the atomicIntegerArray)AtomicIntegerArray to convert to int[].Returns an int[] from the |
| public static long[] | Returns: an long[].the atomicLongArray)AtomicLongArray to convert to long[].Returns an long[] from the |
| public static < the type of elements of the array. T> T[] | Returns: an T[].the atomicReferenceArray)AtomicReferenceArray to convert to T[].Returns an T[] from the |
| public static List | |
| public static Object[] | Returns: the values of the given Object as aObject[].array passed as an object to support both primitive and Object array array)Get the values of any array (primitive or not) into a |
| public static < the type of elements of the array. T> boolean | Returns: true if the given array has only null elements or is empty, false otherwise.the given array. It must not be null. array)Returns |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| private static <T> boolean | |
| public static < the type of elements of the array. T> boolean | Returns: true if the given array is null or empty, otherwise false.the array to check. array)Indicates whether the given array is |
| public static boolean | |
| public static < the type of elements of the array. T> List | Returns: all the non-null elements in the given array. An empty list is returned if the given array is
null.the given array. array)Returns all the non- |
| public static IllegalArgumentException | |
| public static <T> T[] | |
| public static int |
| Arrays | back to summary |
|---|---|
| private Arrays() | |
| array | back to summary |
|---|---|
| public static <T> T[] array(T... values) Returns an array containing the given arguments.
| |
| array | back to summary |
|---|---|
| public static int[] array(AtomicIntegerArray atomicIntegerArray) Returns an int[] from the
| |
| array | back to summary |
|---|---|
| public static long[] array(AtomicLongArray atomicLongArray) Returns an long[] from the
| |
| array | back to summary |
|---|---|
| public static <T> T[] array(AtomicReferenceArray<T> atomicReferenceArray) Returns an T[] from the
| |
| asList | back to summary |
|---|---|
| public static List Get the values of any array (primitive or not) into a
| |
| asObjectArray | back to summary |
|---|---|
| public static Object[] asObjectArray(Object array) Get the values of any array (primitive or not) into a
| |
| hasOnlyNullElements | back to summary |
|---|---|
| public static <T> boolean hasOnlyNullElements(T[] array) Returns
| |
| isArray | back to summary |
|---|---|
| public static boolean isArray(Object o) Indicates whether the given object is not
| |
| isArrayEmpty | back to summary |
|---|---|
| public static boolean isArrayEmpty(Object array) | |
| isArrayTypePrimitive | back to summary |
|---|---|
| public static boolean isArrayTypePrimitive(Object o) | |
| isEmpty | back to summary |
|---|---|
| private static <T> boolean isEmpty(T[] array) | |
| isNullOrEmpty | back to summary |
|---|---|
| public static <T> boolean isNullOrEmpty(T[] array) Indicates whether the given array is
| |
| isObjectArray | back to summary |
|---|---|
| public static boolean isObjectArray(Object o) | |
| nonNullElementsIn | back to summary |
|---|---|
| public static <T> List Returns all the non-
| |
| notAnArrayOfPrimitives | back to summary |
|---|---|
| public static IllegalArgumentException notAnArrayOfPrimitives(Object o) | |
| prepend | back to summary |
|---|---|
public static <T> T[] prepend(T first, T... rest)
| |
| sizeOf | back to summary |
|---|---|
| public static int sizeOf(Object array) | |