List<Object> username=list.stream().map(ThirdChannelDTO->thirdChannelDTO.getChannelCOnfigInfo().get("username")).fileter(Objects::nonNull).distinct().Collect(Collectors.toList());
使用:filter(Objects::nonNull)
List<Object> username=list.stream().map(ThirdChannelDTO->thirdChannelDTO.getChannelCOnfigInfo().get("username")).fileter(Objects::nonNull).distinct().Collect(Collectors.toList());
使用:filter(Objects::nonNull)