Package io.protostuff.runtime
Class ExplicitIdStrategy.RegisteredMapFactory
- java.lang.Object
-
- io.protostuff.runtime.ExplicitIdStrategy.RegisteredMapFactory
-
- All Implemented Interfaces:
MapSchema.MessageFactory
- Enclosing class:
- ExplicitIdStrategy
static final class ExplicitIdStrategy.RegisteredMapFactory extends java.lang.Object implements MapSchema.MessageFactory
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MapSchema.MessageFactory
factory
(package private) int
id
-
Constructor Summary
Constructors Constructor Description RegisteredMapFactory(int id, MapSchema.MessageFactory factory)
-
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
-
id
final int id
-
factory
final MapSchema.MessageFactory factory
-
-
Constructor Detail
-
RegisteredMapFactory
public RegisteredMapFactory(int id, MapSchema.MessageFactory factory)
-
-
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
-
-