RFR: 8004518 & 8010122 : Default methods on Map
mike.duigou at oracle.com
Mon Apr 8 18:07:02 UTC 2013
This is a combined review for the new default methods on the java.util.Map interface being added for the JSR-335 lambda libraries. The reviews are being combined because they share a common unit test.
8004518: Add in-place operations to Map
8010122: Add atomic operations to Map
replace(K, V, V)
The * operations treat null values as being absent. (ie. the same as there being no mapping for the specified key).
The default implementations provided in Map are overridden in HashMap for performance purposes, in Hashtable for atomicity and performance purposes and in Collections for atomicity.
More information about the core-libs-dev