本文整理了Java中com.esotericsoftware.kryo.Kryo.getTaggedFieldSerializerConfig()
方法的一些代码示例,展示了Kryo.getTaggedFieldSerializerConfig()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Kryo.getTaggedFieldSerializerConfig()
方法的具体详情如下:
包路径:com.esotericsoftware.kryo.Kryo
类名称:Kryo
方法名:getTaggedFieldSerializerConfig
暂无
代码示例来源:origin: com.esotericsoftware/kryo
public TaggedFieldSerializer (Kryo kryo, Class type) {
super(kryo, type, null, kryo.getTaggedFieldSerializerConfig().clone());
}
代码示例来源:origin: com.esotericsoftware/kryo-shaded
public TaggedFieldSerializer (Kryo kryo, Class type) {
super(kryo, type, null, kryo.getTaggedFieldSerializerConfig().clone());
}
代码示例来源:origin: mbrlabs/Mundus
public KryoManager() {
// setup kryo
kryo = new Kryo();
kryo.setDefaultSerializer(TaggedFieldSerializer.class);
kryo.getTaggedFieldSerializerConfig().setOptimizedGenerics(true);
// !!!!! DO NOT CHANGE THIS, OTHERWISE ALREADY SERIALIZED OBJECTS WILL
// BE UNREADABLE !!!!
// core stuff
kryo.register(ArrayList.class, 0);
kryo.register(Date.class, 1);
kryo.register(RegistryDescriptor.class, 2);
kryo.register(ProjectRefDescriptor.class, 3);
kryo.register(SettingsDescriptor.class, 4);
kryo.register(ProjectSettingsDescriptor.class, 5);
kryo.register(KeyboardLayout.class, 6);
kryo.register(ProjectDescriptor.class, 7);
kryo.register(SceneDescriptor.class, 8);
// basic building blocks
kryo.register(FogDescriptor.class, 9);
kryo.register(GameObjectDescriptor.class, 10);
kryo.register(BaseLightDescriptor.class, 11);
// components
kryo.register(ModelComponentDescriptor.class, 12);
kryo.register(TerrainComponentDescriptor.class, 13);
}
内容来源于网络,如有侵权,请联系作者删除!