Package io.protostuff.runtime
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 newCollection
message.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.MessageFactory
Creates a newCollection
message.- Specified by:
newMessage
in interfaceCollectionSchema.MessageFactory
-
typeClass
Description copied from interface:CollectionSchema.MessageFactory
The type to instantiate.- Specified by:
typeClass
in interfaceCollectionSchema.MessageFactory
-