public class SoftValueLongObjectHashMap<V extends SoftValueLongObjectHashMap.ValueCache> extends Object implements io.netty.util.collection.LongObjectMap<V>
| Modifier and Type | Class and Description |
|---|---|
static interface |
SoftValueLongObjectHashMap.ValueCache |
| Constructor and Description |
|---|
SoftValueLongObjectHashMap(int maxElements) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(long key) |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Iterable<io.netty.util.collection.LongObjectMap.PrimitiveEntry<V>> |
entries() |
Set<Map.Entry<Long,V>> |
entrySet() |
boolean |
equals(Object o) |
V |
get(long key) |
V |
get(Object key) |
int |
getMaxEelements() |
int |
hashCode() |
boolean |
isEmpty() |
Set<Long> |
keySet() |
V |
put(long key,
V value) |
V |
put(Long key,
V value) |
void |
putAll(Map<? extends Long,? extends V> m) |
V |
remove(long key) |
V |
remove(Object key) |
void |
setMaxElements(int maxElements) |
int |
size() |
Collection<V> |
values() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic void setMaxElements(int maxElements)
public int getMaxEelements()
public int size()
size in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>Map.size()public boolean isEmpty()
isEmpty in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>Map.isEmpty()public boolean containsKey(Object key)
containsKey in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>key - Map.containsKey(java.lang.Object)public boolean containsValue(Object value)
containsValue in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>value - Map.containsValue(java.lang.Object)public V get(Object key)
get in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>key - Map.get(java.lang.Object)public V put(Long key, V value)
put in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>public V get(long key)
get in interface io.netty.util.collection.LongObjectMap<V extends SoftValueLongObjectHashMap.ValueCache>public V put(long key, V value)
put in interface io.netty.util.collection.LongObjectMap<V extends SoftValueLongObjectHashMap.ValueCache>key - value - Map.put(java.lang.Object, java.lang.Object)public V remove(long key)
remove in interface io.netty.util.collection.LongObjectMap<V extends SoftValueLongObjectHashMap.ValueCache>public V remove(Object key)
remove in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>key - Map.remove(java.lang.Object)public void putAll(Map<? extends Long,? extends V> m)
putAll in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>m - Map.putAll(java.util.Map)public void clear()
clear in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>Map.clear()public Set<Long> keySet()
keySet in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>Map.keySet()public Collection<V> values()
values in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>Map.values()public Set<Map.Entry<Long,V>> entrySet()
entrySet in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>public Iterable<io.netty.util.collection.LongObjectMap.PrimitiveEntry<V>> entries()
entries in interface io.netty.util.collection.LongObjectMap<V extends SoftValueLongObjectHashMap.ValueCache>public boolean containsKey(long key)
containsKey in interface io.netty.util.collection.LongObjectMap<V extends SoftValueLongObjectHashMap.ValueCache>public boolean equals(Object o)
equals in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>equals in class Objecto - Map.equals(java.lang.Object)public int hashCode()
hashCode in interface Map<Long,V extends SoftValueLongObjectHashMap.ValueCache>hashCode in class ObjectMap.hashCode()Copyright © 2019 JBoss by Red Hat. All rights reserved.