Java Utililty Methods Array Value Any

List of utility methods to do Array Value Any

Description

The list of methods to do Array Value Any are organized into topic(s).

Method

booleananyNulls(Object... items)
any Nulls
for (Object item : items) {
    if (item == null) {
        return true;
return false;
doubleanyToDoubleOrElse(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 {
...
StringanyToString(Object o, boolean noneNull)
any To String
if (null == o && !noneNull) {
    return null;
return (null == o) ? EMPTY_STRING : o.toString();
booleananyTrue(boolean[] booleans)
test if any of the given booleans are true
for (boolean currBool : booleans) {
    if (currBool) {
        return true;
return false;
booleananyTrue(boolean[] booleans)
any True
for (boolean b : booleans)
    if (b)
        return true;
return false;
booleananyValuesTrue(boolean[] booleanArray)
any Values True
for (int i = 0; i < booleanArray.length; i++) {
    if (booleanArray[i])
        return true;
return false;