値が null となる可能性がある場合は、 Collectors.toMap() は使わず、以下のようにすれば回避できます。 list.stream().collect( HashMap::new, (Map m, ...
確定! 回上一頁