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.SerializableA 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 voidclear()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Set<java.util.Map.Entry<K,V>>entrySet()Vget(java.lang.Object key)intindexOf(java.lang.Object key)booleanisEmpty()java.util.Set<K>keySet()Vput(K key, V value)voidputAll(java.util.Map<? extends K,? extends V> m)Vremove(java.lang.Object key)intsize()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)
-
-