com.atlassian.util.concurrent
Class CopyOnWriteMap.Functions
java.lang.Object
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.
Method Summary |
static
|
hash()
HashMap copy function. |
static
|
linked()
LinkedHashMap copy function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopyOnWriteMap.Functions
public CopyOnWriteMap.Functions()
hash
public static <K,V> CopyOnWriteMap.CopyFunction<java.util.Map<K,V>> hash()
HashMap
copy function.
- Type Parameters:
K
- the key typeV
- 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 typeV
- the value type
- Returns:
- a new
LinkedHashMap
Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.