Java Utililty Methods Object Size

List of utility methods to do Object Size

Description

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

Method

intsize(Object o)
size
if (o instanceof Collection)
    return ((Collection) o).size();
else if (o instanceof Map)
    return ((Map) o).size();
else if (o instanceof Object[])
    return ((Object[]) o).length;
else if (o instanceof boolean[])
    return ((boolean[]) o).length;
...