You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same as current processAll, but taking either the resulting map or a builder of the resulting map (similar to collectors/aggregators in Collection.x) to allow the result to be of the specific flavor (e.g. HashMap). Alternatively, we could simply extend the existing processAll` method like this:
When you need to convert a
Map<K1, V1>
into aMap<K2, V2>
, there is an API for that -processAll
, however it looks a bit inelegant:First, I need to explicitly pass
m1.keys
, secondly it always returns back a ListMap.My suggestion is to add a couple of convenience methods:
Same as current `processAll, but without the keys, operating on all keys:
Same as current
processAll, but taking either the resulting map or a builder of the resulting map (similar to collectors/aggregators in Collection.x) to allow the result to be of the specific flavor (e.g. HashMap). Alternatively, we could simply extend the existing
processAll` method like this:The text was updated successfully, but these errors were encountered: