@Status(stage=PRODUCTION, unitTests=COMPLETE) @Review(by="Kees Schotanus", at="2009-09-28") public final class CArray extends Object
Modifier and Type | Field and Description |
---|---|
static Class<?>[] |
EMPTY_ARRAY_OF_CLASSES
Empty array of Classes.
|
static Field[] |
EMPTY_ARRAY_OF_FIELDS
Empty array of Fields.
|
static Method[] |
EMPTY_ARRAY_OF_METHODS
Empty array of Methods.
|
static Object[] |
EMPTY_ARRAY_OF_OBJECTS
Empty array of Objects.
|
static double[] |
EMPTY_ARRAY_OF_PRIMITIVE_DOUBLES
Empty array of primitive doubles.
|
static String[] |
EMPTY_ARRAY_OF_STRINGS
Empty array of Strings.
|
Modifier and Type | Method and Description |
---|---|
static String |
arrayToString(Object array)
Creates a String representation of the supplied array.
|
static <T> T[] |
concat(T[] firstArray,
T[] secondArray)
Concatenates two arrays.
|
public static final Field[] EMPTY_ARRAY_OF_FIELDS
public static final Method[] EMPTY_ARRAY_OF_METHODS
public static final Class<?>[] EMPTY_ARRAY_OF_CLASSES
public static final Object[] EMPTY_ARRAY_OF_OBJECTS
public static final String[] EMPTY_ARRAY_OF_STRINGS
public static final double[] EMPTY_ARRAY_OF_PRIMITIVE_DOUBLES
public static <T> T[] concat(T[] firstArray, T[] secondArray)
T
- The type of both arrays.firstArray
- The first array.secondArray
- The second array.NullPointerException
- When either the firstArray or secondArray is null.public static String arrayToString(Object array)
array
- The array to create a String representation of.IllegalArgumentException
- When the supplied array is not actually
an array.Arrays.deepToString(Object[])
Copyright © 2008–2018. All rights reserved.