com.atlassian.util.concurrent
Class CopyOnWriteSortedMap.Builder<K,V>

java.lang.Object
  extended by com.atlassian.util.concurrent.CopyOnWriteSortedMap.Builder<K,V>
Type Parameters:
K - key type
V - value type
Enclosing class:
CopyOnWriteSortedMap<K,V>

public static class CopyOnWriteSortedMap.Builder<K,V>
extends Object

Build a CopyOnWriteSortedMap and specify all the options.


Method Summary
 CopyOnWriteSortedMap.Builder<K,V> addAll(Map<? extends K,? extends V> values)
          Views are live (reflecting concurrent updates) and mutator methods are supported.
 CopyOnWriteSortedMap.Builder<K,V> liveViews()
          Views are live (reflecting concurrent updates) and mutator methods are supported.
 CopyOnWriteSortedMap<K,V> newTreeMap()
           
 CopyOnWriteSortedMap.Builder<K,V> ordering(Comparator<? super K> comparator)
          Use the specified comparator.
 CopyOnWriteSortedMap.Builder<K,V> orderingNatural()
          Use the keys natural ordering.
 CopyOnWriteSortedMap.Builder<K,V> stableViews()
          Views are stable (fixed in time) and unmodifiable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stableViews

public CopyOnWriteSortedMap.Builder<K,V> stableViews()
Views are stable (fixed in time) and unmodifiable.


liveViews

public CopyOnWriteSortedMap.Builder<K,V> liveViews()
Views are live (reflecting concurrent updates) and mutator methods are supported.


addAll

public CopyOnWriteSortedMap.Builder<K,V> addAll(Map<? extends K,? extends V> values)
Views are live (reflecting concurrent updates) and mutator methods are supported.


ordering

public CopyOnWriteSortedMap.Builder<K,V> ordering(Comparator<? super K> comparator)
Use the specified comparator.


orderingNatural

public CopyOnWriteSortedMap.Builder<K,V> orderingNatural()
Use the keys natural ordering.


newTreeMap

public CopyOnWriteSortedMap<K,V> newTreeMap()


Copyright © 2014 Atlassian. All Rights Reserved.