Class IncrementalIdStrategy.RuntimeCollectionFactory
java.lang.Object
io.protostuff.runtime.IncrementalIdStrategy.RuntimeCollectionFactory
- All Implemented Interfaces:
CollectionSchema.MessageFactory
- Enclosing class:
IncrementalIdStrategy
static final class IncrementalIdStrategy.RuntimeCollectionFactory
extends Object
implements CollectionSchema.MessageFactory
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Class<?> (package private) CollectionSchema.MessageFactory(package private) int(package private) RuntimeEnv.Instantiator<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V> Collection<V> Creates a newCollectionmessage.Class<?> The type to instantiate.
-
Field Details
-
id
volatile int id -
factory
CollectionSchema.MessageFactory factory -
collectionClass
Class<?> collectionClass -
instantiator
RuntimeEnv.Instantiator<?> instantiator
-
-
Constructor Details
-
RuntimeCollectionFactory
RuntimeCollectionFactory()
-
-
Method Details
-
newMessage
Description copied from interface:CollectionSchema.MessageFactoryCreates a newCollectionmessage.- Specified by:
newMessagein interfaceCollectionSchema.MessageFactory
-
typeClass
Description copied from interface:CollectionSchema.MessageFactoryThe type to instantiate.- Specified by:
typeClassin interfaceCollectionSchema.MessageFactory
-