List of utility methods to do Array Value Any
boolean | anyNulls(Object... items) any Nulls for (Object item : items) { if (item == null) { return true; return false; |
double | anyToDoubleOrElse(Object any, double orElse) Convert the object to a double or, if it is null or not convertible, use the orElse value. if (any == null) { return orElse; if (any instanceof Number) { return ((Number) any).doubleValue(); } else if (any instanceof String) { Double tmp = null; try { ... |
String | anyToString(Object o, boolean noneNull) any To String if (null == o && !noneNull) { return null; return (null == o) ? EMPTY_STRING : o.toString(); |
boolean | anyTrue(boolean[] booleans) test if any of the given booleans are true for (boolean currBool : booleans) { if (currBool) { return true; return false; |
boolean | anyTrue(boolean[] booleans) any True for (boolean b : booleans) if (b) return true; return false; |
boolean | anyValuesTrue(boolean[] booleanArray) any Values True for (int i = 0; i < booleanArray.length; i++) { if (booleanArray[i]) return true; return false; |