Sort members.

This commit is contained in:
Gary Gregory 2021-08-13 17:46:09 -04:00
parent 8320a19fce
commit 9060099e40

View File

@ -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.