У меня есть структура, такая как карта
TypeProcessor p=new TypeProcessor.instance();
//Apply this function to the key and each map from the list
// The collect the Result returned in a list.
Result process(String key, Map dataPoints);
< /code>
List list = new ArrayList();
map.forEach(key,value) -> {
value.forEach(innerVal -> {
Result r=p.process(key,innerVal);
list.add(r):
});
});
Подробнее здесь: https://stackoverflow.com/questions/477 ... with-lists