Package io.protostuff.runtime
Class DefaultIdStrategy.RuntimeMapFactory
- java.lang.Object
-
- io.protostuff.runtime.DefaultIdStrategy.RuntimeMapFactory
-
- All Implemented Interfaces:
MapSchema.MessageFactory
- Enclosing class:
- DefaultIdStrategy
static final class DefaultIdStrategy.RuntimeMapFactory extends java.lang.Object implements MapSchema.MessageFactory
-
-
Field Summary
Fields Modifier and Type Field Description (package private) RuntimeEnv.Instantiator<?>
instantiator
(package private) java.lang.Class<?>
mapClass
-
Constructor Summary
Constructors Constructor Description RuntimeMapFactory(java.lang.Class<?> mapClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
java.util.Map<K,V>newMessage()
Creates a newMap
message.java.lang.Class<?>
typeClass()
The type to instantiate.
-
-
-
Field Detail
-
mapClass
final java.lang.Class<?> mapClass
-
instantiator
final RuntimeEnv.Instantiator<?> instantiator
-
-
Method Detail
-
newMessage
public <K,V> java.util.Map<K,V> newMessage()
Description copied from interface:MapSchema.MessageFactory
Creates a newMap
message.- Specified by:
newMessage
in interfaceMapSchema.MessageFactory
-
typeClass
public java.lang.Class<?> typeClass()
Description copied from interface:MapSchema.MessageFactory
The type to instantiate.- Specified by:
typeClass
in interfaceMapSchema.MessageFactory
-
-