ObjectUtil { public static boolean andIsNull(Object... objects) { return ListUtil.buildArrayList(objects).stream().filter(ObjectUtil::isNotNull).count() == 0; }  static boolean isNull(Object obj); static boolean isNotNull(Object obj); static boolean andIsNull(Object... objects); static boolean orIsNull(Object... objects); static boolean equals(Object obj1, Object obj2); static boolean same(Object obj1, Object obj2);  }
@Test public void testAndIsNull() { assertTrue(ObjectUtil.andIsNull(null, null)); assertFalse(ObjectUtil.andIsNull(null, "")); assertFalse(ObjectUtil.andIsNull("", "0")); }