Class ConcurrentHashMapLong<T>
- java.lang.Object
-
- org.elasticsearch.common.util.concurrent.ConcurrentHashMapLong<T>
-
- All Implemented Interfaces:
ConcurrentMap<Long,T>,Map<Long,T>,ConcurrentMapLong<T>
public class ConcurrentHashMapLong<T> extends Object implements ConcurrentMapLong<T>
-
-
Constructor Summary
Constructors Constructor Description ConcurrentHashMapLong(ConcurrentMap<Long,T> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<Long,T>>entrySet()booleanequals(Object o)Tget(long key)Tget(Object key)inthashCode()booleanisEmpty()Set<Long>keySet()Tput(long key, T value)Tput(Long key, T value)voidputAll(Map<? extends Long,? extends T> m)TputIfAbsent(Long key, T value)Tremove(long key)Tremove(Object key)booleanremove(Object key, Object value)Treplace(Long key, T value)booleanreplace(Long key, T oldValue, T newValue)intsize()StringtoString()Collection<T>values()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
-
-
-
Constructor Detail
-
ConcurrentHashMapLong
public ConcurrentHashMapLong(ConcurrentMap<Long,T> map)
-
-
Method Detail
-
get
public T get(long key)
- Specified by:
getin interfaceConcurrentMapLong<T>
-
remove
public T remove(long key)
- Specified by:
removein interfaceConcurrentMapLong<T>
-
put
public T put(long key, T value)
- Specified by:
putin interfaceConcurrentMapLong<T>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<Long,T>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<Long,T>
-
putIfAbsent
public T putIfAbsent(Long key, T value)
- Specified by:
putIfAbsentin interfaceConcurrentMap<Long,T>- Specified by:
putIfAbsentin interfaceMap<Long,T>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
-