public static < K , V , NK , NV > Map < NK , NV > newFilteredChangedKeyValueMap ( Map < K , V > map , Predicate < ? super Entry < K , V > > filter , Function < K , NK > changingKeyFunction , Function < V , NV > changingValueFunction ) { return getEntryStreamWithFilter ( map , filter ) . collect ( toMap ( entry -> changingKeyFunction . apply ( entry . getKey ( ) ) , entry -> changingValueFunction . apply ( entry . getValue ( ) ) ) ) ; }
New filtered changed key value map map .