clojure.lang
Class TransactionalHashMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by clojure.lang.TransactionalHashMap<K,V>
All Implemented Interfaces:
ConcurrentMap<K,V>, Map<K,V>

public class TransactionalHashMap<K,V>
extends AbstractMap<K,V>
implements ConcurrentMap<K,V>


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
TransactionalHashMap()
           
TransactionalHashMap(int nBins)
           
TransactionalHashMap(Map<? extends K,? extends V> m)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object k)
           
 Set<Map.Entry<K,V>> entrySet()
           
 V get(Object k)
           
 boolean isEmpty()
           
 V put(K k, V v)
           
 void putAll(Map<? extends K,? extends V> map)
           
 V putIfAbsent(K k, V v)
           
 V remove(Object k)
           
 boolean remove(Object k, Object v)
           
 V replace(K k, V v)
           
 boolean replace(K k, V oldv, V newv)
           
 int size()
           
 
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, keySet, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsValue, equals, hashCode, keySet, values
 

Constructor Detail

TransactionalHashMap

public TransactionalHashMap()

TransactionalHashMap

public TransactionalHashMap(int nBins)

TransactionalHashMap

public TransactionalHashMap(Map<? extends K,? extends V> m)
Method Detail

size

public int size()
Specified by:
size in interface Map<K,V>
Overrides:
size in class AbstractMap<K,V>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<K,V>
Overrides:
isEmpty in class AbstractMap<K,V>

containsKey

public boolean containsKey(Object k)
Specified by:
containsKey in interface Map<K,V>
Overrides:
containsKey in class AbstractMap<K,V>

get

public V get(Object k)
Specified by:
get in interface Map<K,V>
Overrides:
get in class AbstractMap<K,V>

put

public V put(K k,
             V v)
Specified by:
put in interface Map<K,V>
Overrides:
put in class AbstractMap<K,V>

remove

public V remove(Object k)
Specified by:
remove in interface Map<K,V>
Overrides:
remove in class AbstractMap<K,V>

putAll

public void putAll(Map<? extends K,? extends V> map)
Specified by:
putAll in interface Map<K,V>
Overrides:
putAll in class AbstractMap<K,V>

clear

public void clear()
Specified by:
clear in interface Map<K,V>
Overrides:
clear in class AbstractMap<K,V>

entrySet

public Set<Map.Entry<K,V>> entrySet()
Specified by:
entrySet in interface Map<K,V>
Specified by:
entrySet in class AbstractMap<K,V>

putIfAbsent

public V putIfAbsent(K k,
                     V v)
Specified by:
putIfAbsent in interface ConcurrentMap<K,V>

remove

public boolean remove(Object k,
                      Object v)
Specified by:
remove in interface ConcurrentMap<K,V>

replace

public boolean replace(K k,
                       V oldv,
                       V newv)
Specified by:
replace in interface ConcurrentMap<K,V>

replace

public V replace(K k,
                 V v)
Specified by:
replace in interface ConcurrentMap<K,V>


Copyright © 2015. All Rights Reserved.