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,Iterable<Map.Entry<K,,V>> Map<K,,V> ExecutionObject
public class ExecutionHashMap<K,V>
extends LinkedHashMap<K,V>
implements ExecutionObject, Iterable<Map.Entry<K,V>>
- See Also:
-
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
ConstructorsConstructorDescriptionExecutionHashMap(int size, ExecutionContext executionContext) ExecutionHashMap(Map<K, V> map, ExecutionContext executionContext) -
Method Summary
Modifier and TypeMethodDescriptionclone()entrySet()voidinvert()iterator()keys()longvoidputIfAbsent(K key, V value) booleanvoidreverse()slice()slice(int start) slice(int start, int end) voidvoidsortByKey(boolean asc) voidvoidsortByValue(boolean asc) toSorted()toSorted(boolean asc) toSortedByKey(boolean asc) toSortedByValue(boolean asc) values()Methods inherited from class java.util.LinkedHashMap
clear, containsValue, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAllMethods inherited from class java.util.HashMap
compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, remove, sizeMethods inherited from class java.util.AbstractMap
equals, hashCode, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, remove, size
-
Constructor Details
-
ExecutionHashMap
-
ExecutionHashMap
-
-
Method Details
-
put
-
entrySet
-
putAll
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<K,V> - Overrides:
putIfAbsentin classHashMap<K,V>
-
replace
-
replace
-
remove
-
toUnmodifiable
-
memorySize
public long memorySize()- Specified by:
memorySizein interfaceExecutionObject
-
values
-
keys
-
slice
-
clone
-
slice
-
slice
-
sortByValue
public void sortByValue() -
sortByValue
public void sortByValue(boolean asc) -
sortByKey
public void sortByKey() -
sortByKey
public void sortByKey(boolean asc) -
toSortedByValue
-
toSortedByValue
-
toSorted
-
toSorted
-
toSortedByKey
-
toSortedByKey
-
invert
public void invert() -
toInverted
-
reverse
public void reverse() -
toReversed
-
iterator
-