public class ArrayUtils
extends org.apache.commons.lang3.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 <T> int |
getNumberOfElements(T[] array)
Counts non-null elements in an array
|
static <T> T[] |
insert(T[] array,
T item)
Finds the first null value in an array and inserts the new value there.
|
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, getLength, 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, isNotEmpty, isNotEmpty, isNotEmpty, isNotEmpty, isNotEmpty, isNotEmpty, isNotEmpty, isNotEmpty, isNotEmpty, 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, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, nullToEmpty, remove, remove, remove, remove, remove, remove, remove, remove, remove, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeElement, removeElement, removeElement, removeElement, removeElement, removeElement, removeElement, removeElement, removeElement, removeElements, removeElements, removeElements, removeElements, removeElements, removeElements, removeElements, removeElements, removeElements, reverse, reverse, reverse, reverse, reverse, reverse, reverse, reverse, reverse, subarray, subarray, subarray, subarray, subarray, subarray, subarray, subarray, subarray, toArray, 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, toString
public static <T> T[] insert(T[] array, T item)
array
- The array to insert intoitem
- The value to insertpublic static <T> int getNumberOfElements(T[] array)
array
- The array to be checked