|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.util.concurrent.CopyOnWriteMaps
public class CopyOnWriteMaps
Static factory methods for creating CopyOnWriteMap
and
CopyOnWriteSortedMap
instances.
Constructor Summary | |
---|---|
CopyOnWriteMaps()
|
Method Summary | ||
---|---|---|
static
|
newHashMap()
Creates a new CopyOnWriteMap with an underlying HashMap . |
|
static
|
newHashMap(java.util.Map<? extends K,? extends V> map)
Creates a new CopyOnWriteMap with an underlying HashMap
using the supplied map as the initial values. |
|
static
|
newLinkedMap()
Creates a new CopyOnWriteMap with an underlying
LinkedHashMap . |
|
static
|
newLinkedMap(java.util.Map<? extends K,? extends V> map)
Creates a new CopyOnWriteMap with an underlying
LinkedHashMap using the supplied map as the initial values. |
|
static
|
newTreeMap()
Create a new CopyOnWriteSortedMap where the underlying map
instances are TreeMap and the sort uses the key's natural order. |
|
static
|
newTreeMap(java.util.Comparator<? super K> comparator)
Create a new CopyOnWriteSortedMap where the underlying map
instances are TreeMap . |
|
static
|
newTreeMap(java.util.Map<? extends K,? extends V> map)
Create a new CopyOnWriteSortedMap where the underlying map
instances are TreeMap , the sort uses the key's natural order and
the initial values are supplied. |
|
static
|
newTreeMap(java.util.Map<? extends K,? extends V> map,
java.util.Comparator<? super K> comparator)
Create a new CopyOnWriteSortedMap where the underlying map
instances are TreeMap , the sort uses the key's natural order and
the initial values are supplied. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CopyOnWriteMaps()
Method Detail |
---|
public static <K,V> CopyOnWriteMap<K,V> newHashMap()
CopyOnWriteMap
with an underlying HashMap
.
public static <K,V> CopyOnWriteMap<K,V> newHashMap(java.util.Map<? extends K,? extends V> map)
CopyOnWriteMap
with an underlying HashMap
using the supplied map as the initial values.
public static <K,V> CopyOnWriteMap<K,V> newLinkedMap()
CopyOnWriteMap
with an underlying
LinkedHashMap
. Iterators for this map will be return elements in
insertion order.
public static <K,V> CopyOnWriteMap<K,V> newLinkedMap(java.util.Map<? extends K,? extends V> map)
CopyOnWriteMap
with an underlying
LinkedHashMap
using the supplied map as the initial values.
Iterators for this map will be return elements in insertion order.
public static <K,V> CopyOnWriteSortedMap<K,V> newTreeMap()
CopyOnWriteSortedMap
where the underlying map
instances are TreeMap
and the sort uses the key's natural order.
public static <K,V> CopyOnWriteSortedMap<K,V> newTreeMap(java.util.Map<? extends K,? extends V> map)
CopyOnWriteSortedMap
where the underlying map
instances are TreeMap
, the sort uses the key's natural order and
the initial values are supplied.
the
- map to use as the initial values.public static <K,V> CopyOnWriteSortedMap<K,V> newTreeMap(java.util.Comparator<? super K> comparator)
CopyOnWriteSortedMap
where the underlying map
instances are TreeMap
.
the
- Comparator to use for ordering the keys.public static <K,V> CopyOnWriteSortedMap<K,V> newTreeMap(java.util.Map<? extends K,? extends V> map, java.util.Comparator<? super K> comparator)
CopyOnWriteSortedMap
where the underlying map
instances are TreeMap
, the sort uses the key's natural order and
the initial values are supplied.
map
- to use as the initial values.comparator
- for ordering.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |