Android Utililty Methods Array to Map Convert

List of utility methods to do Array to Map Convert

Description

The list of methods to do Array to Map Convert are organized into topic(s).

Method

MaptoMap(Object[] array)

Converts the given array into a java.util.Map .

if (array == null) {
    return null;
final Map<Object, Object> map = new HashMap<Object, Object>(
        (int) (array.length * 1.5));
for (int i = 0; i < array.length; i++) {
    Object object = array[i];
    if (object instanceof Map.Entry<?, ?>) {
...