StringUtil { public static boolean orIsBlank(String... strs) { return Arrays.asList(strs).stream().filter(StringUtil::isBlank).count() > 0; }  static boolean isEmpty(String str); static boolean andIsEmpty(String... strs); static boolean orIsEmpty(String... strs); static boolean isNotEmpty(String str); static boolean isBlank(String str); static boolean andIsBlank(String... strs); static boolean orIsBlank(String... strs); static boolean isNotBlank(String str); static boolean equals(String str1, String str2); static byte[] strToBytes(String str); static String bytesToStr(byte[] bytes); static String strToHexStr(String str); static String hexStrToStr(String hexStr); static byte[] hexStrToBytes(String hexStr); static String bytesToHexStr(byte[] bytes); static String merge(Object... objects); @SneakyThrows static int toInt(String str); @SneakyThrows static long toLong(String str); @SneakyThrows static double toDouble(String str); @SneakyThrows static float toFloat(String str); @SneakyThrows static String toMD5(String str);  }
@Test public void testOrIsBlank() { assertTrue(StringUtil.orIsBlank(null, "")); assertTrue(StringUtil.orIsBlank("", " ")); assertFalse(StringUtil.orIsBlank("a", "b")); assertTrue(StringUtil.orIsBlank(null, "a")); }