| java.lang.Object com.icesoft.faces.util.ArrayUtils
ArrayUtils | public class ArrayUtils (Code) | | Utility class for managing arrays
author: Anton Koinov (latest modification by $Author: grantsmith $) version: $Revision: 169655 $ $Date: 2005-05-11 12:45:06 -0400 (Wed, 11 May version: 2005) $ |
Method Summary | |
public static Class | commonClass(Class c1, Class c2) | public static Object | concat(Object arr1, Object arr2) Concatenates two arrays into one. | public static Object | concat(Object[] arrs) Concatenates arrays into one. | public static Object | concat(Object toArray, int totalLen, Object[] arrs) | public static Object | concat(Object arr1, Object arr2, Object arr3) | public static Object | concat(Object arr1, Object arr2, Object arr3, Object arr4) | public static Object | concat(Object arr1, Object arr2, Object arr3, Object arr4, Object arr5) | public static Object | concatSameType(Object toArray, Object[] arrs) | public static boolean | contains(Object[] array, Object value) |
EMPTY_OBJECT_ARRAY | final public static Object[] EMPTY_OBJECT_ARRAY(Code) | | |
EMPTY_STRING_ARRAY | final public static String[] EMPTY_STRING_ARRAY(Code) | | |
ArrayUtils | protected ArrayUtils()(Code) | | |
concat | public static Object concat(Object arr1, Object arr2)(Code) | | Concatenates two arrays into one. If arr1 is null or empty, returns arr2.
If arr2 is null or empty, returns arr1. May return null if both arrays
are null, or one is empty and the other null. The concatenated array
has componentType which is compatible with both input arrays (or
Object[])
Parameters: arr1 - input array Parameters: arr2 - input array Object the concatenated array, elements of arr1 first |
concat | public static Object concat(Object[] arrs)(Code) | | Concatenates arrays into one. Any null or empty arrays are ignored. If
all arrays are null or empty, returns null. Elements will be ordered in
the order in which the arrays are supplied.
Parameters: arrs - array of arrays the concatenated array |
|
|