public class ArrayUtils
extends org.apache.commons.lang.ArrayUtils
EMPTY_BOOLEAN_ARRAY, EMPTY_BOOLEAN_OBJECT_ARRAY, EMPTY_BYTE_ARRAY, EMPTY_BYTE_OBJECT_ARRAY, EMPTY_CHAR_ARRAY, EMPTY_CHARACTER_OBJECT_ARRAY, EMPTY_CLASS_ARRAY, EMPTY_DOUBLE_ARRAY, EMPTY_DOUBLE_OBJECT_ARRAY, EMPTY_FLOAT_ARRAY, EMPTY_FLOAT_OBJECT_ARRAY, EMPTY_INT_ARRAY, EMPTY_INTEGER_OBJECT_ARRAY, EMPTY_LONG_ARRAY, EMPTY_LONG_OBJECT_ARRAY, EMPTY_OBJECT_ARRAY, EMPTY_SHORT_ARRAY, EMPTY_SHORT_OBJECT_ARRAY, EMPTY_STRING_ARRAY, INDEX_NOT_FOUND| Constructor and Description |
|---|
ArrayUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getLength(Object array) |
static String[] |
intersection(String[] a,
String[] b)
Calculates the intersection between two arrays, as if they were sets.
|
static Object[] |
setDifference(Object[] a,
Object[] b) |
static String[] |
setDifference(String[] a,
String[] b) |
static Object[] |
toArrayOfComponentType(Object[] objects,
Class clazz)
Creates a copy of the given array, but with the given
Class as
element type. |
static String |
toString(Object array,
int maxElements)
Like
ArrayUtils.toString(Object) but considers at most maxElements
values; overflow is indicated by an appended "[..]" ellipsis. |
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, addAll, clone, clone, clone, clone, clone, clone, clone, clone, clone, contains, contains, contains, contains, contains, contains, contains, contains, contains, contains, hashCode, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, isEmpty, isEmpty, isEmpty, isEmpty, isEmpty, isEmpty, isEmpty, isEmpty, isEmpty, isEquals, isSameLength, isSameLength, isSameLength, isSameLength, isSameLength, isSameLength, isSameLength, isSameLength, isSameLength, isSameType, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, remove, remove, remove, remove, remove, remove, remove, remove, remove, removeElement, removeElement, removeElement, removeElement, removeElement, removeElement, removeElement, removeElement, removeElement, reverse, reverse, reverse, reverse, reverse, reverse, reverse, reverse, reverse, subarray, subarray, subarray, subarray, subarray, subarray, subarray, subarray, subarray, toMap, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, toStringpublic static String toString(Object array, int maxElements)
ArrayUtils.toString(Object) but considers at most maxElements
values; overflow is indicated by an appended "[..]" ellipsis.public static Object[] toArrayOfComponentType(Object[] objects, Class clazz)
Class as
element type. Useful for arrays of objects that implement multiple interfaces
and a "typed view" onto these objects is required.objects - the array of objectsclazz - the desired service type of the new arraynull when objects is null, or a new
array containing the elements of the source array which is typed to
the given clazz parameter. If clazz is
already the service type of the source array, the source array is
returned (i.e. no copy is created).IllegalArgumentException - if the clazz argument is
null.ArrayStoreException - if the elements in objects cannot
be cast to clazz.public static String[] intersection(String[] a, String[] b)
public static int getLength(Object array)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.