use of eu.einfracentral.dto.MapValues in project resource-catalogue by madgeek-arc.
the class StatisticsManager method toListMapValues.
private List<MapValues> toListMapValues(Map<String, Set<Value>> mapSetValues) {
List<MapValues> mapValuesList = new ArrayList<>();
for (Map.Entry<String, Set<Value>> entry : mapSetValues.entrySet()) {
if (!entry.getValue().isEmpty()) {
MapValues mapValues = new MapValues();
mapValues.setKey(entry.getKey());
mapValues.setValues(new ArrayList<>(entry.getValue()));
mapValuesList.add(mapValues);
}
}
return mapValuesList;
}
Aggregations