T - the type of mapped valuespublic final class ConcurrentTLongObjectHashMap<T>
extends com.gemstone.gemfire.internal.concurrent.THashParameters
implements java.util.Map<java.lang.Long,T>
| 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(java.lang.Object key) |
boolean |
containsKeyPrimitive(long key) |
boolean |
containsValue(java.lang.Object value) |
java.util.Set<java.util.Map.Entry<java.lang.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(java.lang.Object key) |
T |
getPrimitive(long key) |
boolean |
isEmpty() |
long[] |
keys()
returns the keys of the map.
|
java.util.Set<java.lang.Long> |
keySet() |
long |
longSize() |
T |
put(java.lang.Long key,
T value) |
void |
putAll(java.util.Map<? extends java.lang.Long,? extends T> m) |
java.lang.Object |
putIfAbsent(long key,
T value)
If the specified key is not already associated with a value, associate it
with the given value.
|
java.lang.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(java.lang.Object key) |
java.lang.Object |
removePrimitive(long key) |
int |
size() |
java.util.Collection<T> |
values() |
public 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 get(java.lang.Object key)
get in interface java.util.Map<java.lang.Long,T>public T getPrimitive(long key)
public T put(java.lang.Long key, T value)
put in interface java.util.Map<java.lang.Long,T>public java.lang.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 java.lang.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 keyjava.lang.NullPointerException - if the specified key is nullpublic T remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Long,T>public java.lang.Object removePrimitive(long key)
public void putAll(java.util.Map<? extends java.lang.Long,? extends T> m)
putAll in interface java.util.Map<java.lang.Long,T>public final long longSize()
public int size()
size in interface java.util.Map<java.lang.Long,T>public boolean isEmpty()
isEmpty in interface java.util.Map<java.lang.Long,T>public boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Map<java.lang.Long,T>public boolean containsKeyPrimitive(long key)
public boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Map<java.lang.Long,T>public void clear()
clear in interface java.util.Map<java.lang.Long,T>public java.util.Set<java.lang.Long> keySet()
keySet in interface java.util.Map<java.lang.Long,T>public long[] keys()
Set valuepublic java.util.Collection<T> values()
values in interface java.util.Map<java.lang.Long,T>public java.util.Set<java.util.Map.Entry<java.lang.Long,T>> entrySet()
entrySet in interface java.util.Map<java.lang.Long,T>public 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.