Class ConcurrentHashMapLong<T>
- java.lang.Object
-
- 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>
-
-
Constructor Summary
Constructors Constructor Description ConcurrentHashMapLong(java.util.concurrent.ConcurrentMap<java.lang.Long,T> map)
-
Method Summary
Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
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.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()
-
-
-
Constructor Detail
-
ConcurrentHashMapLong
public ConcurrentHashMapLong(java.util.concurrent.ConcurrentMap<java.lang.Long,T> map)
-
-
Method Detail
-
get
public T get(long key)
- Specified by:
get
in interfaceConcurrentMapLong<T>
-
remove
public T remove(long key)
- Specified by:
remove
in interfaceConcurrentMapLong<T>
-
put
public T put(long key, T value)
- Specified by:
put
in interfaceConcurrentMapLong<T>
-
putIfAbsent
public T putIfAbsent(long key, T value)
- Specified by:
putIfAbsent
in interfaceConcurrentMapLong<T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<java.lang.Long,T>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<java.lang.Long,T>
-
get
public T get(java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<java.lang.Long,T>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfacejava.util.Map<java.lang.Long,T>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfacejava.util.Map<java.lang.Long,T>
-
put
public T put(java.lang.Long key, T value)
- Specified by:
put
in interfacejava.util.Map<java.lang.Long,T>
-
putAll
public void putAll(java.util.Map<? extends java.lang.Long,? extends T> m)
- Specified by:
putAll
in interfacejava.util.Map<java.lang.Long,T>
-
remove
public T remove(java.lang.Object key)
- Specified by:
remove
in interfacejava.util.Map<java.lang.Long,T>
-
remove
public boolean remove(java.lang.Object key, java.lang.Object value)
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<java.lang.Long,T>
-
keySet
public java.util.Set<java.lang.Long> keySet()
- Specified by:
keySet
in interfacejava.util.Map<java.lang.Long,T>
-
values
public java.util.Collection<T> values()
- Specified by:
values
in interfacejava.util.Map<java.lang.Long,T>
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.Long,T>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<java.lang.Long,T>
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.util.Map<java.lang.Long,T>
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map<java.lang.Long,T>
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-