Map.computeIfAbsent

Martin Buchholz martinrb at google.com
Thu May 23 20:33:15 PDT 2013


This spec snippet from Map.computeIfAbsent:

     * @param key key with which the specified value is to be associated

is not correct, since there is no "specified value".  A convincing
replacement is hard to find.  Perhaps best is the muddy

     * @param key key with which a value may be associated

from computeIfPresent.


More information about the lambda-dev mailing list