Top Fields Constructors Methods
org.osgi.util.converter

pack-priv Class DynamicMapFacade<K, V>

Located in compilation unit of org.osgi.util.converter.DynamicMapLikeFacade.

extends DynamicMapLikeFacade<K, V>
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Map<K, V>
Inherited from org.osgi.util.converter.DynamicMapLikeFacade:
convertingImpl

Constructor Summary

AccessConstructor and Description
pack-priv
DynamicMapFacade(Map<K, V> backingObject, ConvertingImpl convertingImpl)

Method Summary

Modifier and TypeMethod and Description
public V
get(Object
the key whose associated value is to be returned
key
)

Implements java.util.Map.get.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

public Set<K>
keySet()

Implements java.util.Map.keySet.

Returns a Set view of the keys contained in this map.

Inherited from org.osgi.util.converter.DynamicMapLikeFacade:
clearcontainsKeycontainsValueentrySetisEmptyputputAllremovesizetoStringvalues

Field Detail

backingObjectback to summary
private final Map<K, V> backingObject

Constructor Detail

DynamicMapFacadeback to summary
pack-priv DynamicMapFacade(Map<K, V> backingObject, ConvertingImpl convertingImpl)

Method Detail

getback to summary
public V get(Object key)

Implements java.util.Map.get.

Doc from java.util.Map.get.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

More formally, if this map contains a mapping from a key k to a value v such that Objects.equals(key, k), then this method returns v; otherwise it returns null. (There can be at most one such mapping.)

If this map permits null values, then a return value of null does not necessarily indicate that the map contains no mapping for the key; it's also possible that the map explicitly maps the key to null. The containsKey operation may be used to distinguish these two cases.

Parameters
key:Object

the key whose associated value is to be returned

Returns:V

the value to which the specified key is mapped, or null if this map contains no mapping for the key

Annotations
@Override
keySetback to summary
public Set<K> keySet()

Implements java.util.Map.keySet.

Doc from java.util.Map.keySet.

Returns a Set view of the keys contained in this map. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. If the map is modified while an iteration over the set is in progress (except through the iterator's own remove operation), the results of the iteration are undefined. The set supports element removal, which removes the corresponding mapping from the map, via the Iterator.remove, Set.remove, removeAll, retainAll, and clear operations. It does not support the add or addAll operations.

Returns:Set<K>

a set view of the keys contained in this map

Annotations
@Override