本文共 2088 字,大约阅读时间需要 6 分钟。
commons-lang3-3.1.jar
Operations on arrays, primitive arrays (like {@code int[]}) andprimitive wrapper arrays (like {@code Integer[]}).This class tries to handle {@code null} input gracefully.An exception will not be thrown for a {@code null}array input. However, an Object array that contains a {@code null}element may throw an exception. Each method documents its behaviour.
public static Map
// JDK5 可变参数(Varargs)public staticT[] toArray(final T... items) { return items;}
public static boolean isEmpty(final Object[] array) { return getLength(array) == 0;}public static int getLength(final Object array) { if (array == null) { return 0; } return Array.getLength(array);}
public static void reverse(final Object[] array) { if (array == null) { return; } reverse(array, 0, array.length);}public static void reverse(final long[] array) { if (array == null) { return; } reverse(array, 0, array.length);}
转载地址:http://invli.baihongyu.com/