public interface InstantiatorGenerator
Instantiator
classes to improve instantiation of
custom types.Modifier and Type | Method and Description |
---|---|
Instantiator |
getInstantiator(Class<? extends DataSerializable> clazz,
int classId)
Returns a (potentially new) Instantiator that optimizes the instantiation of the given types.
|
Instantiator getInstantiator(Class<? extends DataSerializable> clazz, int classId)
clazz
- class produced by the instantiatorclassId
- instantiator class id