Example usage for Java org.apache.commons.lang ArrayUtils fields, constructors, methods, implement or subclass
The text is from its open source code.
Object[] | EMPTY_OBJECT_ARRAY An empty immutable Object array. |
Class | EMPTY_CLASS_ARRAY An empty immutable Class array. |
String[] | EMPTY_STRING_ARRAY An empty immutable String array. |
null | EMPTY_LONG_ARRAY An empty immutable long array. |
Long[] | EMPTY_LONG_OBJECT_ARRAY An empty immutable Long array. |
null | EMPTY_INT_ARRAY An empty immutable int array. |
Integer[] | EMPTY_INTEGER_OBJECT_ARRAY An empty immutable Integer array. |
null | EMPTY_SHORT_ARRAY An empty immutable short array. |
null | EMPTY_BYTE_ARRAY An empty immutable byte array. |
Byte[] | EMPTY_BYTE_OBJECT_ARRAY An empty immutable Byte array. |
null | EMPTY_DOUBLE_ARRAY An empty immutable double array. |
Double[] | EMPTY_DOUBLE_OBJECT_ARRAY An empty immutable Double array. |
null | EMPTY_FLOAT_ARRAY An empty immutable float array. |
null | EMPTY_BOOLEAN_ARRAY An empty immutable boolean array. |
null | EMPTY_CHAR_ARRAY An empty immutable char array. |
Character[] | EMPTY_CHARACTER_OBJECT_ARRAY An empty immutable Character array. |
int | INDEX_NOT_FOUND The index value when an element is not found in a list or array: -1 . |
Object[] | add(Object[] array, Object element) Copies the given array and adds the given element at the end of the new array. |
boolean[] | add(boolean[] array, boolean element) Copies the given array and adds the given element at the end of the new array. |
byte[] | add(byte[] array, byte element) Copies the given array and adds the given element at the end of the new array. |
char[] | add(char[] array, char element) Copies the given array and adds the given element at the end of the new array. |
double[] | add(double[] array, double element) Copies the given array and adds the given element at the end of the new array. |
float[] | add(float[] array, float element) Copies the given array and adds the given element at the end of the new array. |
int[] | add(int[] array, int element) Copies the given array and adds the given element at the end of the new array. |
long[] | add(long[] array, long element) Copies the given array and adds the given element at the end of the new array. |
short[] | add(short[] array, short element) Copies the given array and adds the given element at the end of the new array. |
Object[] | add(Object[] array, int index, Object element) Inserts the specified element at the specified position in the array. |
boolean[] | add(boolean[] array, int index, boolean element) Inserts the specified element at the specified position in the array. |
char[] | add(char[] array, int index, char element) Inserts the specified element at the specified position in the array. |
byte[] | add(byte[] array, int index, byte element) Inserts the specified element at the specified position in the array. |
short[] | add(short[] array, int index, short element) Inserts the specified element at the specified position in the array. |
int[] | add(int[] array, int index, int element) Inserts the specified element at the specified position in the array. |
long[] | add(long[] array, int index, long element) Inserts the specified element at the specified position in the array. |
float[] | add(float[] array, int index, float element) Inserts the specified element at the specified position in the array. |
double[] | add(double[] array, int index, double element) Inserts the specified element at the specified position in the array. |
Object[] | addAll(Object[] array1, Object[] array2) Adds all the elements of the given arrays into a new array. |
boolean[] | addAll(boolean[] array1, boolean[] array2) Adds all the elements of the given arrays into a new array. |
char[] | addAll(char[] array1, char[] array2) Adds all the elements of the given arrays into a new array. |
byte[] | addAll(byte[] array1, byte[] array2) Adds all the elements of the given arrays into a new array. |
short[] | addAll(short[] array1, short[] array2) Adds all the elements of the given arrays into a new array. |
int[] | addAll(int[] array1, int[] array2) Adds all the elements of the given arrays into a new array. |
long[] | addAll(long[] array1, long[] array2) Adds all the elements of the given arrays into a new array. |
float[] | addAll(float[] array1, float[] array2) Adds all the elements of the given arrays into a new array. |
double[] | addAll(double[] array1, double[] array2) Adds all the elements of the given arrays into a new array. |
Object[] | clone(Object[] array) Shallow clones an array returning a typecast result and handling |
long[] | clone(long[] array) Clones an array returning a typecast result and handling |
int[] | clone(int[] array) Clones an array returning a typecast result and handling |
short[] | clone(short[] array) Clones an array returning a typecast result and handling |
char[] | clone(char[] array) Clones an array returning a typecast result and handling |
byte[] | clone(byte[] array) Clones an array returning a typecast result and handling |
double[] | clone(double[] array) Clones an array returning a typecast result and handling |
float[] | clone(float[] array) Clones an array returning a typecast result and handling |
boolean[] | clone(boolean[] array) Clones an array returning a typecast result and handling |
boolean | contains(Object[] array, Object objectToFind) Checks if the object is in the given array. |
boolean | contains(long[] array, long valueToFind) Checks if the value is in the given array. |
boolean | contains(int[] array, int valueToFind) Checks if the value is in the given array. |
boolean | contains(short[] array, short valueToFind) Checks if the value is in the given array. |
boolean | contains(char[] array, char valueToFind) Checks if the value is in the given array. |
boolean | contains(byte[] array, byte valueToFind) Checks if the value is in the given array. |
boolean | contains(double[] array, double valueToFind) Checks if the value is in the given array. |
boolean | contains(float[] array, float valueToFind) Checks if the value is in the given array. |
boolean | contains(boolean[] array, boolean valueToFind) Checks if the value is in the given array. |
int | getLength(Object array) Returns the length of the specified array. |
int | indexOf(Object[] array, Object objectToFind) Finds the index of the given object in the array. |
int | indexOf(long[] array, long valueToFind) Finds the index of the given value in the array. |
int | indexOf(int[] array, int valueToFind) Finds the index of the given value in the array. |
int | indexOf(short[] array, short valueToFind) Finds the index of the given value in the array. |
int | indexOf(char[] array, char valueToFind) Finds the index of the given value in the array. |
int | indexOf(byte[] array, byte valueToFind) Finds the index of the given value in the array. |
int | indexOf(double[] array, double valueToFind) Finds the index of the given value in the array. |
int | indexOf(float[] array, float valueToFind) Finds the index of the given value in the array. |
int | indexOf(boolean[] array, boolean valueToFind) Finds the index of the given value in the array. |
int | indexOf(Object[] array, Object objectToFind, int startIndex) Finds the index of the given object in the array starting at the given index. |
int | indexOf(long[] array, long valueToFind, int startIndex) Finds the index of the given value in the array starting at the given index. |
int | indexOf(int[] array, int valueToFind, int startIndex) Finds the index of the given value in the array starting at the given index. |
int | indexOf(short[] array, short valueToFind, int startIndex) Finds the index of the given value in the array starting at the given index. |
int | indexOf(char[] array, char valueToFind, int startIndex) Finds the index of the given value in the array starting at the given index. |
int | indexOf(byte[] array, byte valueToFind, int startIndex) Finds the index of the given value in the array starting at the given index. |
int | indexOf(double[] array, double valueToFind, double tolerance) Finds the index of the given value within a given tolerance in the array. |
int | indexOf(double[] array, double valueToFind, int startIndex) Finds the index of the given value in the array starting at the given index. |
int | indexOf(float[] array, float valueToFind, int startIndex) Finds the index of the given value in the array starting at the given index. |
int | indexOf(boolean[] array, boolean valueToFind, int startIndex) Finds the index of the given value in the array starting at the given index. |
boolean | isEmpty(Object[] array) Checks if an array of Objects is empty or |
boolean | isEmpty(long[] array) Checks if an array of primitive longs is empty or |
boolean | isEmpty(int[] array) Checks if an array of primitive ints is empty or |
boolean | isEmpty(short[] array) Checks if an array of primitive shorts is empty or |
boolean | isEmpty(char[] array) Checks if an array of primitive chars is empty or |
boolean | isEmpty(byte[] array) Checks if an array of primitive bytes is empty or |
boolean | isEmpty(double[] array) Checks if an array of primitive doubles is empty or |
boolean | isEmpty(float[] array) Checks if an array of primitive floats is empty or |
boolean | isEmpty(boolean[] array) Checks if an array of primitive booleans is empty or |
boolean | isNotEmpty(Object[] array) Checks if an array of Objects is not empty or not |
boolean | isNotEmpty(long[] array) Checks if an array of primitive longs is not empty or not |
boolean | isNotEmpty(int[] array) Checks if an array of primitive ints is not empty or not |
boolean | isNotEmpty(short[] array) Checks if an array of primitive shorts is not empty or not |
boolean | isNotEmpty(char[] array) Checks if an array of primitive chars is not empty or not |
boolean | isNotEmpty(byte[] array) Checks if an array of primitive bytes is not empty or not |
boolean | isNotEmpty(double[] array) Checks if an array of primitive doubles is not empty or not |
boolean | isNotEmpty(float[] array) Checks if an array of primitive floats is not empty or not |
boolean | isNotEmpty(boolean[] array) Checks if an array of primitive booleans is not empty or not |
boolean | isSameLength(Object[] array1, Object[] array2) Checks whether two arrays are the same length, treating |
boolean | isSameLength(long[] array1, long[] array2) Checks whether two arrays are the same length, treating |
boolean | isSameLength(int[] array1, int[] array2) Checks whether two arrays are the same length, treating |
boolean | isSameLength(short[] array1, short[] array2) Checks whether two arrays are the same length, treating |
boolean | isSameLength(char[] array1, char[] array2) Checks whether two arrays are the same length, treating |
boolean | isSameLength(byte[] array1, byte[] array2) Checks whether two arrays are the same length, treating |
boolean | isSameLength(double[] array1, double[] array2) Checks whether two arrays are the same length, treating |
boolean | isSameLength(float[] array1, float[] array2) Checks whether two arrays are the same length, treating |
boolean | isSameLength(boolean[] array1, boolean[] array2) Checks whether two arrays are the same length, treating |
int | lastIndexOf(Object[] array, Object objectToFind) Finds the last index of the given object within the array. |
int | lastIndexOf(long[] array, long valueToFind) Finds the last index of the given value within the array. |
int | lastIndexOf(int[] array, int valueToFind) Finds the last index of the given value within the array. |
int | lastIndexOf(short[] array, short valueToFind) Finds the last index of the given value within the array. |
int | lastIndexOf(char[] array, char valueToFind) Finds the last index of the given value within the array. |
int | lastIndexOf(byte[] array, byte valueToFind) Finds the last index of the given value within the array. |
int | lastIndexOf(double[] array, double valueToFind) Finds the last index of the given value within the array. |
int | lastIndexOf(float[] array, float valueToFind) Finds the last index of the given value within the array. |
int | lastIndexOf(boolean[] array, boolean valueToFind) Finds the last index of the given value within the array. |
Object[] | nullToEmpty(Object[] array) Defensive programming technique to change a |
String[] | nullToEmpty(String[] array) Defensive programming technique to change a |
long[] | nullToEmpty(long[] array) Defensive programming technique to change a |
int[] | nullToEmpty(int[] array) Defensive programming technique to change a |
short[] | nullToEmpty(short[] array) Defensive programming technique to change a |
char[] | nullToEmpty(char[] array) Defensive programming technique to change a |
byte[] | nullToEmpty(byte[] array) Defensive programming technique to change a |
double[] | nullToEmpty(double[] array) Defensive programming technique to change a |
float[] | nullToEmpty(float[] array) Defensive programming technique to change a |
boolean[] | nullToEmpty(boolean[] array) Defensive programming technique to change a |
Long[] | nullToEmpty(Long[] array) Defensive programming technique to change a |
Integer[] | nullToEmpty(Integer[] array) Defensive programming technique to change a |
Short[] | nullToEmpty(Short[] array) Defensive programming technique to change a |
Character[] | nullToEmpty(Character[] array) Defensive programming technique to change a |
Byte[] | nullToEmpty(Byte[] array) Defensive programming technique to change a |
Double[] | nullToEmpty(Double[] array) Defensive programming technique to change a |
Float[] | nullToEmpty(Float[] array) Defensive programming technique to change a |
Boolean[] | nullToEmpty(Boolean[] array) Defensive programming technique to change a |
Object[] | remove(Object[] array, int index) Removes the element at the specified position from the specified array. |
boolean[] | remove(boolean[] array, int index) Removes the element at the specified position from the specified array. |
byte[] | remove(byte[] array, int index) Removes the element at the specified position from the specified array. |
char[] | remove(char[] array, int index) Removes the element at the specified position from the specified array. |
double[] | remove(double[] array, int index) Removes the element at the specified position from the specified array. |
float[] | remove(float[] array, int index) Removes the element at the specified position from the specified array. |
int[] | remove(int[] array, int index) Removes the element at the specified position from the specified array. |
long[] | remove(long[] array, int index) Removes the element at the specified position from the specified array. |
short[] | remove(short[] array, int index) Removes the element at the specified position from the specified array. |
Object | remove(Object array, int index) Removes the element at the specified position from the specified array. |
Object[] | removeElement(Object[] array, Object element) Removes the first occurrence of the specified element from the specified array. |
boolean[] | removeElement(boolean[] array, boolean element) Removes the first occurrence of the specified element from the specified array. |
byte[] | removeElement(byte[] array, byte element) Removes the first occurrence of the specified element from the specified array. |
char[] | removeElement(char[] array, char element) Removes the first occurrence of the specified element from the specified array. |
double[] | removeElement(double[] array, double element) Removes the first occurrence of the specified element from the specified array. |
float[] | removeElement(float[] array, float element) Removes the first occurrence of the specified element from the specified array. |
int[] | removeElement(int[] array, int element) Removes the first occurrence of the specified element from the specified array. |
long[] | removeElement(long[] array, long element) Removes the first occurrence of the specified element from the specified array. |
short[] | removeElement(short[] array, short element) Removes the first occurrence of the specified element from the specified array. |
void | reverse(Object[] array) Reverses the order of the given array. |
void | reverse(long[] array) Reverses the order of the given array. |
void | reverse(int[] array) Reverses the order of the given array. |
void | reverse(short[] array) Reverses the order of the given array. |
void | reverse(char[] array) Reverses the order of the given array. |
void | reverse(byte[] array) Reverses the order of the given array. |
void | reverse(double[] array) Reverses the order of the given array. |
void | reverse(float[] array) Reverses the order of the given array. |
void | reverse(boolean[] array) Reverses the order of the given array. |
Object[] | subarray(Object[] array, int startIndexInclusive, int endIndexExclusive) Produces a new array containing the elements between the start and end indices. |
long[] | subarray(long[] array, int startIndexInclusive, int endIndexExclusive) Produces a new |
int[] | subarray(int[] array, int startIndexInclusive, int endIndexExclusive) Produces a new |
short[] | subarray(short[] array, int startIndexInclusive, int endIndexExclusive) Produces a new |
char[] | subarray(char[] array, int startIndexInclusive, int endIndexExclusive) Produces a new |
byte[] | subarray(byte[] array, int startIndexInclusive, int endIndexExclusive) Produces a new |
double[] | subarray(double[] array, int startIndexInclusive, int endIndexExclusive) Produces a new |
float[] | subarray(float[] array, int startIndexInclusive, int endIndexExclusive) Produces a new |
boolean[] | subarray(boolean[] array, int startIndexInclusive, int endIndexExclusive) Produces a new |
Character[] | toObject(char[] array) Converts an array of primitive chars to objects. |
Long[] | toObject(long[] array) Converts an array of primitive longs to objects. |
Integer[] | toObject(int[] array) Converts an array of primitive ints to objects. |
Short[] | toObject(short[] array) Converts an array of primitive shorts to objects. |
Byte[] | toObject(byte[] array) Converts an array of primitive bytes to objects. |
Double[] | toObject(double[] array) Converts an array of primitive doubles to objects. |
Float[] | toObject(float[] array) Converts an array of primitive floats to objects. |
Boolean[] | toObject(boolean[] array) Converts an array of primitive booleans to objects. |
char[] | toPrimitive(Character[] array) Converts an array of object Characters to primitives. |
long[] | toPrimitive(Long[] array) Converts an array of object Longs to primitives. |
int[] | toPrimitive(Integer[] array) Converts an array of object Integers to primitives. |
short[] | toPrimitive(Short[] array) Converts an array of object Shorts to primitives. |
byte[] | toPrimitive(Byte[] array) Converts an array of object Bytes to primitives. |
double[] | toPrimitive(Double[] array) Converts an array of object Doubles to primitives. |
float[] | toPrimitive(Float[] array) Converts an array of object Floats to primitives. |
boolean[] | toPrimitive(Boolean[] array) Converts an array of object Booleans to primitives. |
char[] | toPrimitive(Character[] array, char valueForNull) Converts an array of object Character to primitives handling |
long[] | toPrimitive(Long[] array, long valueForNull) Converts an array of object Long to primitives handling |
int[] | toPrimitive(Integer[] array, int valueForNull) Converts an array of object Integer to primitives handling |
short[] | toPrimitive(Short[] array, short valueForNull) Converts an array of object Short to primitives handling |
byte[] | toPrimitive(Byte[] array, byte valueForNull) Converts an array of object Bytes to primitives handling |
double[] | toPrimitive(Double[] array, double valueForNull) Converts an array of object Doubles to primitives handling |
float[] | toPrimitive(Float[] array, float valueForNull) Converts an array of object Floats to primitives handling |
boolean[] | toPrimitive(Boolean[] array, boolean valueForNull) Converts an array of object Booleans to primitives handling |
String | toString(Object array) Outputs an array as a String, treating |
String | toString(Object array, String stringIfNull) Outputs an array as a String handling |