Class UnmodifiableMap<K,V>
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.vilTypes.Map<K,V>
-
- net.ssehub.easy.instantiation.core.model.vilTypes.UnmodifiableMap<K,V>
-
- Type Parameters:
K- the key type of the mapV- the value type of the map
- All Implemented Interfaces:
IStringValueProvider,IVilGenericType,IVilType
public class UnmodifiableMap<K,V> extends Map<K,V>
Represents an unmodifiable map. This is just a runtime type.- Author:
- Holger Eichelberger
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.ssehub.easy.instantiation.core.model.vilTypes.IStringValueProvider
IStringValueProvider.StringComparator
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableMap(java.util.Map<java.lang.Object,java.lang.Object> map, TypeDescriptor<?>[] types)Creates a map wrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.Object key, V value)Adds a key-value pair to this map and overrides existing mappings.voidremove(java.lang.Object key)Removes the givenkeyfrom the map.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.vilTypes.Map
at, checkConvertEmpty, clear, cloneMap, containsKey, convert, equals, get, get, getDimensionCount, getDimensionType, getKeys, getOrAdd, getSize, getStringValue, getStringValue, getType, getValues, hashCode, isEmpty, keys, notEmpty, put, sortByKeys, toMap, toMappedMap, toString, values
-
-
-
-
Constructor Detail
-
UnmodifiableMap
public UnmodifiableMap(java.util.Map<java.lang.Object,java.lang.Object> map, TypeDescriptor<?>[] types)Creates a map wrapper.- Parameters:
map- the map to be wrappedtypes- the types inmap
-
-
Method Detail
-
add
public void add(java.lang.Object key, V value)Adds a key-value pair to this map and overrides existing mappings.
-
-