mirror of
https://github.com/apache/commons-lang.git
synced 2025-02-07 10:38:22 +00:00
Sort members.
This commit is contained in:
parent
8320a19fce
commit
9060099e40
@ -754,18 +754,6 @@ public static <T> T[] add(final T[] array, final int index, final T element) {
|
||||
return (T[]) add(array, index, element, clss);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets an array's component type.
|
||||
*
|
||||
* @param <T> The array type.
|
||||
* @param array The array.
|
||||
* @return The component type.
|
||||
* @since 3.13.0
|
||||
*/
|
||||
public static <T> Class<T> getComponentType(final T[] array) {
|
||||
return ClassUtils.getComponentType(ObjectUtils.getClass(array));
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Copies the given array and adds the given element at the end of the new array.
|
||||
*
|
||||
@ -1699,6 +1687,18 @@ public static <T> T get(final T[] array, final int index, final T defaultValue)
|
||||
return isArrayIndexValid(array, index) ? array[index] : defaultValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets an array's component type.
|
||||
*
|
||||
* @param <T> The array type.
|
||||
* @param array The array.
|
||||
* @return The component type.
|
||||
* @since 3.13.0
|
||||
*/
|
||||
public static <T> Class<T> getComponentType(final T[] array) {
|
||||
return ClassUtils.getComponentType(ObjectUtils.getClass(array));
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Returns the length of the specified array.
|
||||
* This method can deal with {@code Object} arrays and with primitive arrays.
|
||||
|
Loading…
x
Reference in New Issue
Block a user