Class OrderedMap<K,V>
java.lang.Object
org.apache.openjpa.lib.util.OrderedMap<K,V>
- All Implemented Interfaces:
Serializable, Map<K,V>
A Map with predictable iteration order.
- Since:
- 2.0.0
- Author:
- Pinaki Poddar
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct with predictable insertion order.OrderedMap(boolean lru) Construct with predictable iteration order. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()intbooleanisEmpty()keySet()voidintsize()values()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
OrderedMap
public OrderedMap()Construct with predictable insertion order. -
OrderedMap
public OrderedMap(boolean lru) Construct with predictable iteration order.- Parameters:
lru- if true the iterator order is based on last access, false for order of insertion.
-
-
Method Details
-
indexOf
-
clear
-
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
entrySet
-
get
-
isEmpty
-
keySet
-
put
-
putAll
-
remove
-
size
-
values
-