ObjectUtils { public static boolean areNull(Object... objects) { for (Object object : objects) { if (object != null) { return false; } } return objects.length > 0; } private  ObjectUtils(); static @Nullable T cast(Class<T> clazz, @Nullable Object object); @SuppressWarnings("unchecked") static @Nullable T cast(Object object); static boolean isNotNull(@Nullable Object object); static boolean areNull(Object... objects); static boolean equalsOneOf(Object value, Object... expected); static boolean equals(T object, C value, Object to, Function<T, C> getter); @SuppressWarnings("unchecked") static boolean equals(T object, Object to, BiPredicate<T, T> equals);  }
@Test void areNull() { Assertions.assertFalse(ObjectUtils.areNull()); Assertions.assertFalse(ObjectUtils.areNull(OBJECT, OBJECT, OBJECT)); Assertions.assertFalse(ObjectUtils.areNull(OBJECT, null, OBJECT)); Assertions.assertTrue(ObjectUtils.areNull(null, null, null)); }