@Test void isArray() { Object someObject = ARRAY; Object anotherObject = "content"; assertTrue(ArrayUtils.isArray(someObject)); assertFalse(ArrayUtils.isArray(anotherObject)); }
public static boolean isArray(@Nullable Object object) { return object != null && object.getClass().isArray(); }
ArrayUtils { public static boolean isArray(@Nullable Object object) { return object != null && object.getClass().isArray(); } }
ArrayUtils { public static boolean isArray(@Nullable Object object) { return object != null && object.getClass().isArray(); } private  ArrayUtils(); }
ArrayUtils { public static boolean isArray(@Nullable Object object) { return object != null && object.getClass().isArray(); } private  ArrayUtils(); static void forEach(T[] array, Consumer<T> consumer); static void forEachThrowing(T[] array, ThrowingConsumer<T, E> consumer); @SafeVarargs @SuppressWarnings("unchecked") static T[] mergeArrays(T[]... arrays); @SafeVarargs static T[] mergeArrays(Function<Integer, T[]> arrayFunction, T[]... arrays); static T[] merge(T firstElement, T[] array, Function<Integer, T[]> arrayFunction); static Option<T> findIn(T[] array, Predicate<T> condition); static boolean containsNull(Object[] array); static boolean contains(Object[] array, Object element); @SafeVarargs static int length(T[]... arrays); static boolean isArray(@Nullable Object object); static boolean isEmpty(@Nullable Object[] array); static Class<?> getDimensionalArrayType(Class<?> type, int dimensions); static Class<?> getBaseClass(Class<?> arrayClass); static Pair<Class<?>, Integer> getBaseClassWithDimensions(Class<?> arrayClass); static Class<?> getArrayClass(Class<?> clazz); static int getIndex(T[] array, Predicate<T> condition); static int indexOf(T[] array, @Nullable T element); static Option<T> getFirst(T[] array); static Option<T> getLast(T[] array); static Option<T> get(T[] array, int index); static T get(T[] array, int index, T defaultValue); @SafeVarargs static T[] of(T... elements); }
ArrayUtils { public static boolean isArray(@Nullable Object object) { return object != null && object.getClass().isArray(); } private  ArrayUtils(); static void forEach(T[] array, Consumer<T> consumer); static void forEachThrowing(T[] array, ThrowingConsumer<T, E> consumer); @SafeVarargs @SuppressWarnings("unchecked") static T[] mergeArrays(T[]... arrays); @SafeVarargs static T[] mergeArrays(Function<Integer, T[]> arrayFunction, T[]... arrays); static T[] merge(T firstElement, T[] array, Function<Integer, T[]> arrayFunction); static Option<T> findIn(T[] array, Predicate<T> condition); static boolean containsNull(Object[] array); static boolean contains(Object[] array, Object element); @SafeVarargs static int length(T[]... arrays); static boolean isArray(@Nullable Object object); static boolean isEmpty(@Nullable Object[] array); static Class<?> getDimensionalArrayType(Class<?> type, int dimensions); static Class<?> getBaseClass(Class<?> arrayClass); static Pair<Class<?>, Integer> getBaseClassWithDimensions(Class<?> arrayClass); static Class<?> getArrayClass(Class<?> clazz); static int getIndex(T[] array, Predicate<T> condition); static int indexOf(T[] array, @Nullable T element); static Option<T> getFirst(T[] array); static Option<T> getLast(T[] array); static Option<T> get(T[] array, int index); static T get(T[] array, int index, T defaultValue); @SafeVarargs static T[] of(T... elements);  }