Java map清除值为null的元素

        map.entrySet().removeIf(entry -> entry.getValue() == null);

  

posted @ 2020-06-19 19:28  无言灬亦知心  阅读(6798)  评论(0编辑  收藏  举报