Package org.apache.felix.framework.util
Class ImmutableMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.apache.felix.framework.util.ImmutableMap<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,V>
public class ImmutableMap<K,V> extends java.util.AbstractMap<K,V>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ImmutableMap(java.util.Map.Entry<K,V>[] entries)
protected
ImmutableMap(java.util.Map<K,V> map)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
V
get(java.lang.Object key)
static <K,V>
ImmutableMap<K,V>newInstance(java.util.Map.Entry<K,V>... entries)
static <K,V>
ImmutableMap<K,V>newInstance(java.util.Map<K,V> entries)
-
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
-
-
-
-
Method Detail
-
newInstance
public static <K,V> ImmutableMap<K,V> newInstance(java.util.Map.Entry<K,V>... entries)
-
newInstance
public static <K,V> ImmutableMap<K,V> newInstance(java.util.Map<K,V> entries)
-
get
public V get(java.lang.Object key)
-
-