| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONCURRENCY |
| Constructor and Description |
|---|
ConcurrentTLongObjectHashMap() |
ConcurrentTLongObjectHashMap(int concurrency) |
ConcurrentTLongObjectHashMap(int concurrency,
int initialCapacity) |
ConcurrentTLongObjectHashMap(int concurrency,
int initialCapacity,
float loadFactor,
com.gemstone.gnu.trove.HashingStats stats) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsKeyPrimitive(long key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<Long,T>> |
entrySet() |
long |
estimateMemoryOverhead(SingleObjectSizer sizer) |
boolean |
forEachEntry(com.gemstone.gnu.trove.TLongObjectProcedure proc)
Apply the given procedure for each key, value pair in the map.
|
boolean |
forEachKey(com.gemstone.gnu.trove.TLongProcedure proc)
Apply the given procedure for each key in the map.
|
boolean |
forEachValue(com.gemstone.gnu.trove.TObjectProcedure proc)
Apply the given procedure for each value in the map.
|
T |
get(Object key) |
T |
getPrimitive(long key) |
boolean |
isEmpty() |
long[] |
keys()
returns the keys of the map.
|
Set<Long> |
keySet() |
long |
longSize() |
T |
put(Long key,
T value) |
void |
putAll(Map<? extends Long,? extends T> m) |
Object |
putIfAbsent(long key,
T value)
If the specified key is not already associated with a value, associate it
with the given value.
|
Object |
putPrimitive(long key,
T value)
Like
put(Long, Object) but takes a primitive long as key to avoid
creating a Long object. |
T |
remove(Object key) |
Object |
removePrimitive(long key) |
int |
size() |
Collection<T> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static final int DEFAULT_CONCURRENCY
public ConcurrentTLongObjectHashMap()
public ConcurrentTLongObjectHashMap(int concurrency)
public ConcurrentTLongObjectHashMap(int concurrency,
int initialCapacity)
public ConcurrentTLongObjectHashMap(int concurrency,
int initialCapacity,
float loadFactor,
com.gemstone.gnu.trove.HashingStats stats)
public T getPrimitive(long key)
public Object putPrimitive(long key, T value)
put(Long, Object) but takes a primitive long as key to avoid
creating a Long object.put(Long, Object)public Object putIfAbsent(long key, T value)
if (!map.containsKey(key)) return map.put(key, value); else return map.get(key);except that the action is performed atomically.
key - long key with which the specified value is to be associatedvalue - value to be associated with the specified keyNullPointerException - if the specified key is nullpublic Object removePrimitive(long key)
public final long longSize()
public boolean containsKey(Object key)
containsKey in interface Map<Long,T>public boolean containsKeyPrimitive(long key)
public boolean containsValue(Object value)
containsValue in interface Map<Long,T>public long[] keys()
Set valuepublic long estimateMemoryOverhead(SingleObjectSizer sizer)
public boolean forEachKey(com.gemstone.gnu.trove.TLongProcedure proc)
public boolean forEachValue(com.gemstone.gnu.trove.TObjectProcedure proc)
public boolean forEachEntry(com.gemstone.gnu.trove.TLongObjectProcedure proc)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.