* Re-added the method to convert a Device Property list to a Map

This commit is contained in:
Dulitha Wijewantha 2015-03-19 11:17:18 +05:30
parent 4638d25ff1
commit 4600968d60

View File

@ -132,5 +132,11 @@ public final class DeviceManagerUtil {
deviceType + "'", e);
}
}
public static Map<String, String> convertDevicePropertiesToMap(List<Device.Property> properties) {
Map<String, String> propertiesMap = new HashMap<String, String>();
for (Device.Property prop : properties) {
propertiesMap.put(prop.getName(), prop.getValue());
}
return propertiesMap;
}
}