org.elasticsearch.common.util.concurrent
Class ConcurrentHashMapLong<T>

java.lang.Object
  extended by org.elasticsearch.common.util.concurrent.ConcurrentHashMapLong<T>
All Implemented Interfaces:
java.util.concurrent.ConcurrentMap<java.lang.Long,T>, java.util.Map<java.lang.Long,T>, ConcurrentMapLong<T>

public class ConcurrentHashMapLong<T>
extends java.lang.Object
implements ConcurrentMapLong<T>


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
ConcurrentHashMapLong()
           
 
Method Summary
 void clear()
           
 boolean contains(java.lang.Object value)
           
 boolean containsKey(java.lang.Object key)
           
 boolean containsValue(java.lang.Object value)
           
 java.util.Enumeration<T> elements()
           
 java.util.Set<java.util.Map.Entry<java.lang.Long,T>> entrySet()
           
 boolean equals(java.lang.Object o)
           
 T get(long key)
           
 T get(java.lang.Object key)
           
 int hashCode()
           
 boolean isEmpty()
           
 java.util.Enumeration<java.lang.Long> keys()
           
 java.util.Set<java.lang.Long> keySet()
           
 T put(long key, T value)
           
 T put(java.lang.Long key, T value)
           
 void putAll(java.util.Map<? extends java.lang.Long,? extends T> m)
           
 T putIfAbsent(long key, T value)
           
 T putIfAbsent(java.lang.Long key, T value)
           
 T remove(long key)
           
 T remove(java.lang.Object key)
           
 boolean remove(java.lang.Object key, java.lang.Object value)
           
 T replace(java.lang.Long key, T value)
           
 boolean replace(java.lang.Long key, T oldValue, T newValue)
           
 int size()
           
 java.lang.String toString()
           
 java.util.Collection<T> values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConcurrentHashMapLong

public ConcurrentHashMapLong()
Method Detail

get

public T get(long key)
Specified by:
get in interface ConcurrentMapLong<T>

remove

public T remove(long key)
Specified by:
remove in interface ConcurrentMapLong<T>

put

public T put(long key,
             T value)
Specified by:
put in interface ConcurrentMapLong<T>

putIfAbsent

public T putIfAbsent(long key,
                     T value)
Specified by:
putIfAbsent in interface ConcurrentMapLong<T>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map<java.lang.Long,T>

size

public int size()
Specified by:
size in interface java.util.Map<java.lang.Long,T>

get

public T get(java.lang.Object key)
Specified by:
get in interface java.util.Map<java.lang.Long,T>

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map<java.lang.Long,T>

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map<java.lang.Long,T>

contains

public boolean contains(java.lang.Object value)

put

public T put(java.lang.Long key,
             T value)
Specified by:
put in interface java.util.Map<java.lang.Long,T>

putIfAbsent

public T putIfAbsent(java.lang.Long key,
                     T value)
Specified by:
putIfAbsent in interface java.util.concurrent.ConcurrentMap<java.lang.Long,T>

putAll

public void putAll(java.util.Map<? extends java.lang.Long,? extends T> m)
Specified by:
putAll in interface java.util.Map<java.lang.Long,T>

remove

public T remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<java.lang.Long,T>

remove

public boolean remove(java.lang.Object key,
                      java.lang.Object value)
Specified by:
remove in interface java.util.concurrent.ConcurrentMap<java.lang.Long,T>

replace

public boolean replace(java.lang.Long key,
                       T oldValue,
                       T newValue)
Specified by:
replace in interface java.util.concurrent.ConcurrentMap<java.lang.Long,T>

replace

public T replace(java.lang.Long key,
                 T value)
Specified by:
replace in interface java.util.concurrent.ConcurrentMap<java.lang.Long,T>

clear

public void clear()
Specified by:
clear in interface java.util.Map<java.lang.Long,T>

keySet

public java.util.Set<java.lang.Long> keySet()
Specified by:
keySet in interface java.util.Map<java.lang.Long,T>

values

public java.util.Collection<T> values()
Specified by:
values in interface java.util.Map<java.lang.Long,T>

entrySet

public java.util.Set<java.util.Map.Entry<java.lang.Long,T>> entrySet()
Specified by:
entrySet in interface java.util.Map<java.lang.Long,T>

keys

public java.util.Enumeration<java.lang.Long> keys()

elements

public java.util.Enumeration<T> elements()

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map<java.lang.Long,T>
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map<java.lang.Long,T>
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object