Package org.apache.openjpa.lib.util
Class OrderedMap<K,V>
- java.lang.Object
-
- org.apache.openjpa.lib.util.OrderedMap<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<K,V>
public class OrderedMap<K,V> extends java.lang.Object implements java.util.Map<K,V>, java.io.Serializable
A Map with predictable iteration order.- Since:
- 2.0.0
- Author:
- Pinaki Poddar
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OrderedMap()
Construct with predictable insertion order.OrderedMap(boolean lru)
Construct with predictable iteration order.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
V
get(java.lang.Object key)
int
indexOf(java.lang.Object key)
boolean
isEmpty()
java.util.Set<K>
keySet()
V
put(K key, V value)
void
putAll(java.util.Map<? extends K,? extends V> m)
V
remove(java.lang.Object key)
int
size()
java.util.Collection<V>
values()
-
-
-
Method Detail
-
indexOf
public int indexOf(java.lang.Object key)
-
containsKey
public boolean containsKey(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
-