Class SoftValueLongObjectHashMap<V extends SoftValueLongObjectHashMap.ValueCache>
- java.lang.Object
-
- org.apache.activemq.artemis.utils.SoftValueLongObjectHashMap<V>
-
public class SoftValueLongObjectHashMap<V extends SoftValueLongObjectHashMap.ValueCache> extends Object implements io.netty.util.collection.LongObjectMap<V>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSoftValueLongObjectHashMap.ValueCache-
Nested classes/interfaces inherited from interface io.netty.util.collection.LongObjectMap
io.netty.util.collection.LongObjectMap.PrimitiveEntry<V extends Object>
-
-
Constructor Summary
Constructors Constructor Description SoftValueLongObjectHashMap(int maxElements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(long key)booleancontainsKey(Object key)booleancontainsValue(Object value)Iterable<io.netty.util.collection.LongObjectMap.PrimitiveEntry<V>>entries()Set<Map.Entry<Long,V>>entrySet()booleanequals(Object o)Vget(long key)Vget(Object key)intgetMaxEelements()inthashCode()booleanisEmpty()Set<Long>keySet()Vput(long key, V value)Vput(Long key, V value)voidputAll(Map<? extends Long,? extends V> m)Vremove(long key)Vremove(Object key)voidsetMaxElements(int maxElements)intsize()Collection<V>values()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
setMaxElements
public void setMaxElements(int maxElements)
-
getMaxEelements
public int getMaxEelements()
-
size
public int size()
- Specified by:
sizein interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- See Also:
Map.size()
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- See Also:
Map.isEmpty()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- Parameters:
key-- See Also:
Map.containsKey(java.lang.Object)
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- Parameters:
value-- See Also:
Map.containsValue(java.lang.Object)
-
get
public V get(Object key)
- Specified by:
getin interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- Parameters:
key-- See Also:
Map.get(java.lang.Object)
-
put
public V put(Long key, V value)
- Specified by:
putin interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>
-
get
public V get(long key)
- Specified by:
getin interfaceio.netty.util.collection.LongObjectMap<V extends SoftValueLongObjectHashMap.ValueCache>
-
put
public V put(long key, V value)
- Specified by:
putin interfaceio.netty.util.collection.LongObjectMap<V extends SoftValueLongObjectHashMap.ValueCache>- Parameters:
key-value-- See Also:
Map.put(java.lang.Object, java.lang.Object)
-
remove
public V remove(long key)
- Specified by:
removein interfaceio.netty.util.collection.LongObjectMap<V extends SoftValueLongObjectHashMap.ValueCache>
-
remove
public V remove(Object key)
- Specified by:
removein interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- Parameters:
key-- See Also:
Map.remove(java.lang.Object)
-
putAll
public void putAll(Map<? extends Long,? extends V> m)
- Specified by:
putAllin interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- Parameters:
m-- See Also:
Map.putAll(java.util.Map)
-
clear
public void clear()
- Specified by:
clearin interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- See Also:
Map.clear()
-
keySet
public Set<Long> keySet()
- Specified by:
keySetin interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- See Also:
Map.keySet()
-
values
public Collection<V> values()
- Specified by:
valuesin interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- See Also:
Map.values()
-
entrySet
public Set<Map.Entry<Long,V>> entrySet()
- Specified by:
entrySetin interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>
-
entries
public Iterable<io.netty.util.collection.LongObjectMap.PrimitiveEntry<V>> entries()
- Specified by:
entriesin interfaceio.netty.util.collection.LongObjectMap<V extends SoftValueLongObjectHashMap.ValueCache>
-
containsKey
public boolean containsKey(long key)
- Specified by:
containsKeyin interfaceio.netty.util.collection.LongObjectMap<V extends SoftValueLongObjectHashMap.ValueCache>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- Overrides:
equalsin classObject- Parameters:
o-- See Also:
Map.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceMap<Long,V extends SoftValueLongObjectHashMap.ValueCache>- Overrides:
hashCodein classObject- See Also:
Map.hashCode()
-
-