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:
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 java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
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 java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, valuesMethods inherited from class java.lang.Object
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
-
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
-