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
The Map interface in Java has method putAll, which returns void. This is very inconvenient when several maps needs to be merged as an expression. In order to support this, CollectionUtil needs to be enhanced with method Map<K,V> merge(Map<K,V> map1, Map<K,V>... otherMaps) that would create a new map of the same type as its first argument and put all elements from all of the non-null maps in to the result.
Expected outcome
Ability to merge maps as expression.
The text was updated successfully, but these errors were encountered:
Description
The
Map
interface in Java has methodputAll
, which returnsvoid
. This is very inconvenient when several maps needs to be merged as an expression. In order to support this,CollectionUtil
needs to be enhanced with methodMap<K,V> merge(Map<K,V> map1, Map<K,V>... otherMaps)
that would create a new map of the same type as its first argument and put all elements from all of the non-null maps in to the result.Expected outcome
Ability to merge maps as expression.
The text was updated successfully, but these errors were encountered: