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