@Test public void testHasNonEmpty() { assertFalse(StringUtils.hasNonEmpty((String[]) null)); assertFalse(StringUtils.hasNonEmpty((String) null)); assertFalse(StringUtils.hasNonEmpty(null, null, null)); assertFalse(StringUtils.hasNonEmpty(null, "", null)); assertTrue(StringUtils.hasNonEmpty(null, "", "someValue")); }
public static boolean hasNonEmpty(final String... values) { return values != null && Arrays.stream(values).anyMatch(StringUtils::nonEmpty); }
StringUtils { public static boolean hasNonEmpty(final String... values) { return values != null && Arrays.stream(values).anyMatch(StringUtils::nonEmpty); } }
StringUtils { public static boolean hasNonEmpty(final String... values) { return values != null && Arrays.stream(values).anyMatch(StringUtils::nonEmpty); } private  StringUtils(); }
StringUtils { public static boolean hasNonEmpty(final String... values) { return values != null && Arrays.stream(values).anyMatch(StringUtils::nonEmpty); } private  StringUtils(); static boolean isEmpty(final String s); static boolean nonEmpty(final String s); static boolean hasNonEmpty(final String... values); static boolean isQuoted(String str); static String createQuotedString(final String str); static String createQuotedStringIfNotNumeric(String str); static String replaceIllegalCharsAttribute(final String value); static String replaceIllegalCharsForDataObjects(final String value); static String revertIllegalCharsAttribute(final String value); static String createUnquotedString(String str); }
StringUtils { public static boolean hasNonEmpty(final String... values) { return values != null && Arrays.stream(values).anyMatch(StringUtils::nonEmpty); } private  StringUtils(); static boolean isEmpty(final String s); static boolean nonEmpty(final String s); static boolean hasNonEmpty(final String... values); static boolean isQuoted(String str); static String createQuotedString(final String str); static String createQuotedStringIfNotNumeric(String str); static String replaceIllegalCharsAttribute(final String value); static String replaceIllegalCharsForDataObjects(final String value); static String revertIllegalCharsAttribute(final String value); static String createUnquotedString(String str);  }