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 TypeMethodDescriptionvoid
clear()
private void
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
private Object
findConvertedKey
(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 Object
getConvertedKey
(Object key) private Object
getConvertedValue
(Object val) int
hashCode()
boolean
isEmpty()
keySet()
void
int
size()
toString()
values()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
containsKey
in interfaceMap<K,
V>
-
containsValue
- Specified by:
containsValue
in 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
-