ConcurrentHashMap/ConcurrentMap/Map.compute (original) (raw)

Doug Lea dl at cs.oswego.edu
Fri Dec 7 11:49:57 PST 2012


On 12/07/12 12:34, Raab, Donald wrote:

We went with the equivalent names in Smalltalk's Dictionary class (surprise!). They're not quite as nice without keyword message support, but they are easy enough to understand IMO.

V getIfAbsentPutWith(K key, Function<? super P, ? extends V> function, P parameter);

I'd normally side with ugly-but-clear. But I think this is too far past merely ugly even for me :-)

-Doug



More information about the lambda-libs-spec-experts mailing list