私はList<Map<String,Object>>
[ {key1: object1a, key2: object2a, key3: object3a},
{key1: object1a, key2: object2a, key3: object3a},
{key1: object1b, key2: object2b, key3: object3b},
{key1: object1b, key2: object2b, key3: object3b},
...
]
を取得するために、3 番目の値でグループ化したいと思いますMap<String,List<Map<String,Object>>>
。
{ object3a: [ {key1: object1a, key2: object2a},
{key1: object1a, key2: object2a}
],
object3b: [ {key1: object1b, key2: object2b},
{key1: object1b, key2: object2b}
],
...
}
Collectors.groupingBy?
メソッドを使用して可能ですか、どのようにですか?