Package org.osgi.util.converter
Class MapDelegate<K,V>
java.lang.Object
org.osgi.util.converter.MapDelegate<K,V>
- All Implemented Interfaces:
Map<K,V>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()private voidbooleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanprivate ObjectfindConvertedKey(Set<?> keySet, Object key) (package private) static MapDelegate<String, Object> forBean(Object b, Class<?> beanClass, ConvertingImpl converting) (package private) static <K,V> MapDelegate <K, V> forDictionary(Dictionary<K, V> d, ConvertingImpl converting) (package private) static MapDelegate<String, Object> forDTO(Object obj, Class<?> dtoClass, ConvertingImpl converting) (package private) static MapDelegate<String, Object> forInterface(Object obj, Class<?> intf, ConvertingImpl converting) (package private) static <K,V> Map <K, V> forMap(Map<K, V> m, ConvertingImpl converting) private ObjectgetConvertedKey(Object key) private ObjectgetConvertedValue(Object val) inthashCode()booleanisEmpty()keySet()voidintsize()toString()values()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
cloned
private volatile boolean cloned -
convertingImpl
-
delegate
-
-
Constructor Details
-
MapDelegate
-
-
Method Details
-
forBean
-
forMap
-
forDictionary
-
forDTO
-
forInterface
static MapDelegate<String,Object> forInterface(Object obj, Class<?> intf, ConvertingImpl converting) -
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
getConvertedKey
-
getConvertedValue
-
findConvertedKey
-
put
-
remove
-
putAll
-
clear
public void clear() -
internalKeySet
-
keySet
-
values
-
entrySet
-
equals
-
hashCode
public int hashCode() -
cloneDelegate
private void cloneDelegate() -
toString
-