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:
Map<K,V>
- Enclosing class:
Internal
Wrap around a
Map<K, RealValue> and provide a Map<K, V> interface.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface used to convert between two types.private classprivate classprivate classNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMapAdapter(Map<K, RealValue> realMap, Internal.MapAdapter.Converter<RealValue, V> valueConverter) -
Method Summary
Modifier and TypeMethodDescriptionentrySet()static <T extends Internal.EnumLite>
Internal.MapAdapter.Converter<Integer, T> newEnumConverter(Internal.EnumLiteMap<T> enumMap, T unrecognizedValue) Methods inherited from class AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
realMap
-
valueConverter
-
-
Constructor Details
-
MapAdapter
-
-
Method Details
-
newEnumConverter
public static <T extends Internal.EnumLite> Internal.MapAdapter.Converter<Integer,T> newEnumConverter(Internal.EnumLiteMap<T> enumMap, T unrecognizedValue) -
get
-
put
-
entrySet
-