阅读背景:

Java 8 / Lambda:多个collect / Collectors.groupingBy with sorted

来源:互联网 

Im having the following code

我有以下代码

    Map<BigDecimal, Map<Optional<BigDecimal>, List<TestDto>>> test =  data.getTestDtos().stream()
    .collect(
            Collectors.groupingBy(TestDto::getValue1,
            Collectors.groupingBy(dto -> Optional.ofNullable(dto.getValue2()))));
    Map



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: