public static < K , V > List < V > removeAllIfByEntry ( Map < K , V > map , Predicate < ? super Entry < K , V > > filter ) { return getEntryStreamWithFilter ( map , filter ) . map ( Entry :: getKey ) . collect ( toList ( ) ) . stream ( ) . map ( map :: remove ) . collect ( toList ( ) ) ; }
Remove all if by entry list .