[concurrency-interest] Handling Null Values in ConcurrentHashMap

Bob Lee crazybob at crazybob.org
Fri May 12 12:30:34 EDT 2006

On 5/12/06, Doug Lea <dl at cs.oswego.edu> wrote:
> Would it be easier to declare somewhere
>    static final Object NULL = new Object();
> and replace all use of nulls in uses of maps with NULL?

Enums also work great here:


More information about the Concurrency-interest mailing list