Android Utililty Methods Object Array Flatten

List of utility methods to do Object Array Flatten

Description

The list of methods to do Object Array Flatten are organized into topic(s).

Method

Object[]flatten(Object[] array)
Transform a multidimensional array into a one-dimensional list.
final List<Object> list = new ArrayList<Object>();
if (array != null) {
    for (Object o : array) {
        if (o instanceof Object[]) {
            for (Object oR : flatten((Object[]) o)) {
                list.add(oR);
        } else {
...