by Anonymous » 11 Jul 2025, 17:56
Ich habe eine Struktur wie Karte
Code: Select all
[code]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):
});
});
Ich habe eine Struktur wie Karte[code]
[code]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):
});
});
[/code]