org.elasticsearch.common.util.concurrent
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>
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Method Summary |
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set<Map.Entry<Long,T>> |
entrySet()
|
boolean |
equals(Object o)
|
T |
get(long key)
|
T |
get(Object key)
|
int |
hashCode()
|
boolean |
isEmpty()
|
Set<Long> |
keySet()
|
T |
put(long key,
T value)
|
T |
put(Long key,
T value)
|
void |
putAll(Map<? extends Long,? extends T> m)
|
T |
putIfAbsent(long key,
T value)
|
T |
putIfAbsent(Long key,
T value)
|
T |
remove(long key)
|
T |
remove(Object key)
|
boolean |
remove(Object key,
Object value)
|
T |
replace(Long key,
T value)
|
boolean |
replace(Long key,
T oldValue,
T newValue)
|
int |
size()
|
String |
toString()
|
Collection<T> |
values()
|
ConcurrentHashMapLong
public ConcurrentHashMapLong()
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 Map<Long,T>
size
public int size()
- Specified by:
size
in interface Map<Long,T>
get
public T get(Object key)
- Specified by:
get
in interface Map<Long,T>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Map<Long,T>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interface Map<Long,T>
put
public T put(Long key,
T value)
- Specified by:
put
in interface Map<Long,T>
putIfAbsent
public T putIfAbsent(Long key,
T value)
- Specified by:
putIfAbsent
in interface ConcurrentMap<Long,T>
putAll
public void putAll(Map<? extends Long,? extends T> m)
- Specified by:
putAll
in interface Map<Long,T>
remove
public T remove(Object key)
- Specified by:
remove
in interface Map<Long,T>
remove
public boolean remove(Object key,
Object value)
- Specified by:
remove
in interface ConcurrentMap<Long,T>
replace
public boolean replace(Long key,
T oldValue,
T newValue)
- Specified by:
replace
in interface ConcurrentMap<Long,T>
replace
public T replace(Long key,
T value)
- Specified by:
replace
in interface ConcurrentMap<Long,T>
clear
public void clear()
- Specified by:
clear
in interface Map<Long,T>
keySet
public Set<Long> keySet()
- Specified by:
keySet
in interface Map<Long,T>
values
public Collection<T> values()
- Specified by:
values
in interface Map<Long,T>
entrySet
public Set<Map.Entry<Long,T>> entrySet()
- Specified by:
entrySet
in interface Map<Long,T>
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Map<Long,T>
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Map<Long,T>
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012. All Rights Reserved.