Utils.appendArrays

Overview | Methods | This Package | All Packages

Utils.appendArrays

Appends two arrays to form a new array.

Syntax

public static Object[] appendArrays( Class classType, Object[] array1, Object[] array2 )

Parameters

classType

The class type of the resulting array.

array1

The first array to append.

array2

The second array to append.

Return Value

If both array1 and array2 are null, null is returned. If either of these arrays is null and the other is non-null, the non-null array is returned, and the classType parameter is ignored. If both arrays are non-null, a new array of type classType is returned; the values of array1 are copied into the new array, followed by the values of array2.

Exceptions

java.lang.ArrayStoreException thrown if the values in array1 and array2 cannot be stored in the new array of type classType.

See Also   appendStrings