Package org.mvel2.execution
Class ExecutionHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<K,V>
-
- org.mvel2.execution.ExecutionHashMap<K,V>
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,V>,ExecutionObject
public class ExecutionHashMap<K,V> extends LinkedHashMap<K,V> implements ExecutionObject
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description ExecutionHashMap(int size, ExecutionContext executionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()longmemorySize()Vput(K key, V value)voidputAll(Map<? extends K,? extends V> m)VputIfAbsent(K key, V value)Vremove(Object key)Vreplace(K key, V value)booleanreplace(K key, V oldValue, V newValue)StringtoString()-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, remove, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, remove, size
-
-
-
-
Constructor Detail
-
ExecutionHashMap
public ExecutionHashMap(int size, ExecutionContext executionContext)
-
-
Method Detail
-
putIfAbsent
public V putIfAbsent(K key, V value)
- Specified by:
putIfAbsentin interfaceMap<K,V>- Overrides:
putIfAbsentin classHashMap<K,V>
-
getId
public int getId()
- Specified by:
getIdin interfaceExecutionObject
-
memorySize
public long memorySize()
- Specified by:
memorySizein interfaceExecutionObject
-
toString
public String toString()
- Overrides:
toStringin classAbstractMap<K,V>
-
-