Buy me a coffee
Java
›
Map
›
merge
←
putIfAbsent
merge
Map
forEach
→
キーが存在する場合はマージ関数を適用し、存在しない場合は値を挿入します。
構文
map.merge(key, value, remappingFn)