toMap を指定した終端処理で Map に変換することができます。 list.stream().collect( Collectors.toMap(Item::getId, e -> e)); // {3 = Item{3, ...
確定! 回上一頁