Package com.google.protobuf
Class Internal.MapAdapter<K,V,RealValue>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- com.google.protobuf.Internal.MapAdapter<K,V,RealValue>
-
- All Implemented Interfaces:
java.util.Map<K,V>
- Enclosing class:
- Internal
public static class Internal.MapAdapter<K,V,RealValue> extends java.util.AbstractMap<K,V>Wrap around aMap<K, RealValue>and provide aMap<K, V>interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInternal.MapAdapter.Converter<A,B>An interface used to convert between two types.
-
Constructor Summary
Constructors Constructor Description MapAdapter(java.util.Map<K,RealValue> realMap, Internal.MapAdapter.Converter<RealValue,V> valueConverter)
-
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()Vget(java.lang.Object key)static <T extends Internal.EnumLite>
Internal.MapAdapter.Converter<java.lang.Integer,T>newEnumConverter(Internal.EnumLiteMap<T> enumMap, T unrecognizedValue)Vput(K key, V value)-
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
-
-
-
-
Constructor Detail
-
MapAdapter
public MapAdapter(java.util.Map<K,RealValue> realMap, Internal.MapAdapter.Converter<RealValue,V> valueConverter)
-
-
Method Detail
-
newEnumConverter
public static <T extends Internal.EnumLite> Internal.MapAdapter.Converter<java.lang.Integer,T> newEnumConverter(Internal.EnumLiteMap<T> enumMap, T unrecognizedValue)
-
get
public V get(java.lang.Object key)
-
-