com.atlassian.util.concurrent
Class CopyOnWriteMap.Functions

java.lang.Object
  extended by com.atlassian.util.concurrent.CopyOnWriteMap.Functions
Enclosing class:
CopyOnWriteMap<K,V>

public static final class CopyOnWriteMap.Functions
extends java.lang.Object

Factories that create the standard Collections Map implementations.


Constructor Summary
CopyOnWriteMap.Functions()
           
 
Method Summary
static
<K,V> CopyOnWriteMap.CopyFunction<java.util.Map<K,V>>
hash()
          HashMap copy function.
static
<K,V> CopyOnWriteMap.CopyFunction<java.util.Map<K,V>>
linked()
          LinkedHashMap copy function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyOnWriteMap.Functions

public CopyOnWriteMap.Functions()
Method Detail

hash

public static <K,V> CopyOnWriteMap.CopyFunction<java.util.Map<K,V>> hash()
HashMap copy function.

Type Parameters:
K - the key type
V - the value type
Returns:
a new HashMap

linked

public static <K,V> CopyOnWriteMap.CopyFunction<java.util.Map<K,V>> linked()
LinkedHashMap copy function. Note that LinkedHashMaps with access ordering should not be used.

Type Parameters:
K - the key type
V - the value type
Returns:
a new LinkedHashMap


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.