List of utility methods to do Array Value Any
boolean | any(boolean[] b) any for (int i = 0; i < b.length; i++) if (b[i]) return true; return false; |
boolean | any(boolean[] values) any for (boolean value : values) if (value) return true; return false; |
String | any(final String a, final String b) any if (a != null && a.length() > 0) { return a; return b; |
boolean | anyAreEmpty(String... words) Return whether any of the input strings are empty or null. for (String word : words) { if ((word == null) || word.isEmpty()) { return true; return false; |
boolean | anyBlank(String... ss) any Blank if (null == ss || ss.length == 0) { return true; for (String s : ss) { if (isBlank(s)) { return true; return false; |
boolean | anyEmpty(final String head, final String... tail) any Empty if (isEmpty(head)) { return true; for (final String string : tail) { if (isEmpty(string)) { return true; return false; |
boolean | anyEmpty(String[] array) any Empty boolean foundEmpty = false; for (String s : array) { if ("".equals(s)) { foundEmpty = true; break; return foundEmpty; ... |
boolean | anyEmptyField(String[] items) any Empty Field boolean isEmpty = false; for (String item : items) { if (item.isEmpty()) { isEmpty = true; break; return isEmpty; ... |
boolean | anyEqual(int item, int... expected) any Equal for (int i : expected) { if (item == i) return true; return false; |
boolean | anyInherit(Class> cl, Class>[] otherClasses) any Inherit for (Class<?> otherClass : otherClasses) { if (otherClass.isAssignableFrom(cl)) { return true; return false; |