public static Boolean[] toObject(boolean[] array) {
        if (array == null) {
            return null;
        } else if (array.length == 0) {
            return EMPTY_BOOLEAN_OBJECT_ARRAY;
        }
        final Boolean[] result = new Boolean[array.length];
        for (int i = 0; i < array.length; i++) {
            result[i] = (array[i] ? Boolean.TRUE : Boolean.FALSE);
        }
        return result;
    }
public static Boolean [ ] toObject ( boolean [ ] array ) { if ( array == null ) { return null ; } else if ( array . length == 0 ) { return EMPTY_BOOLEAN_OBJECT_ARRAY ; } final Boolean [ ] result = new Boolean [ array . length ] ; for ( int i = 0 ; i < array . length ; i ++ ) { result [ i ] = ( array [ i ] ? Boolean . TRUE : Boolean . FALSE ) ; } return result ; }
<p>Converts an array of primitive booleans to objects.</p>
<p>
<p>This method returns <code>null</code> for a <code>null</code> input array.</p>

@param array a <code>boolean</code> array
@return a <code>Boolean</code> array, <code>null</code> if null array input