com.hazelcast.nio.serialization
Class ClassDefinitionBuilder
java.lang.Object
com.hazelcast.nio.serialization.ClassDefinitionBuilder
public final class ClassDefinitionBuilder
- extends Object
ClassDefinitionBuilder is used to build and register ClassDefinitions manually.
- See Also:
ClassDefinition
,
Portable
,
SerializationConfig.addClassDefinition(ClassDefinition)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassDefinitionBuilder
public ClassDefinitionBuilder(int factoryId,
int classId)
ClassDefinitionBuilder
public ClassDefinitionBuilder(int factoryId,
int classId,
int version)
addIntField
public ClassDefinitionBuilder addIntField(String fieldName)
addLongField
public ClassDefinitionBuilder addLongField(String fieldName)
addUTFField
public ClassDefinitionBuilder addUTFField(String fieldName)
addBooleanField
public ClassDefinitionBuilder addBooleanField(String fieldName)
addByteField
public ClassDefinitionBuilder addByteField(String fieldName)
addCharField
public ClassDefinitionBuilder addCharField(String fieldName)
addDoubleField
public ClassDefinitionBuilder addDoubleField(String fieldName)
addFloatField
public ClassDefinitionBuilder addFloatField(String fieldName)
addShortField
public ClassDefinitionBuilder addShortField(String fieldName)
addByteArrayField
public ClassDefinitionBuilder addByteArrayField(String fieldName)
addCharArrayField
public ClassDefinitionBuilder addCharArrayField(String fieldName)
addIntArrayField
public ClassDefinitionBuilder addIntArrayField(String fieldName)
addLongArrayField
public ClassDefinitionBuilder addLongArrayField(String fieldName)
addDoubleArrayField
public ClassDefinitionBuilder addDoubleArrayField(String fieldName)
addFloatArrayField
public ClassDefinitionBuilder addFloatArrayField(String fieldName)
addShortArrayField
public ClassDefinitionBuilder addShortArrayField(String fieldName)
addPortableField
public ClassDefinitionBuilder addPortableField(String fieldName,
ClassDefinition def)
addPortableArrayField
public ClassDefinitionBuilder addPortableArrayField(String fieldName,
ClassDefinition def)
build
public ClassDefinition build()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.