mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
* Re-added the method to convert a Device Property list to a Map
This commit is contained in:
parent
4638d25ff1
commit
4600968d60
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user