brian.goetz at oracle.com
Thu Apr 18 14:45:23 PDT 2013
Feature creep alert!
getOrDefault barely, and I mean barely, carried its weight.
On 4/18/2013 5:32 PM, Michael Nascimento wrote:
> Hi guys,
> Sometimes constructing the default object is too costly and relying on
> the ternary operation is the escape hatch again. A
> Map.getOrDefault(Object,Supplier<V>) would solve this.
> Has this been considered before?
More information about the lambda-dev