public final class ClassDefinitionBuilder extends Object
Constructor and Description |
---|
ClassDefinitionBuilder(int factoryId,
int classId)
IMPORTANT: It uses a default portableVersion (0) for non-versioned classes.
|
ClassDefinitionBuilder(int factoryId,
int classId,
int version)
IMPORTANT: Make sure that the version matches the portableVersion in the SerializationService
|
public ClassDefinitionBuilder(int factoryId, int classId)
factoryId
- factoryId to useclassId
- classId to usepublic ClassDefinitionBuilder(int factoryId, int classId, int version)
factoryId
- factoryId to useclassId
- classId to useversion
- portableVersion to usepublic ClassDefinitionBuilder addIntField(String fieldName)
public ClassDefinitionBuilder addLongField(String fieldName)
public ClassDefinitionBuilder addUTFField(String fieldName)
public ClassDefinitionBuilder addBooleanField(String fieldName)
public ClassDefinitionBuilder addByteField(String fieldName)
public ClassDefinitionBuilder addBooleanArrayField(String fieldName)
public ClassDefinitionBuilder addCharField(String fieldName)
public ClassDefinitionBuilder addDoubleField(String fieldName)
public ClassDefinitionBuilder addFloatField(String fieldName)
public ClassDefinitionBuilder addShortField(String fieldName)
public ClassDefinitionBuilder addByteArrayField(String fieldName)
public ClassDefinitionBuilder addCharArrayField(String fieldName)
public ClassDefinitionBuilder addIntArrayField(String fieldName)
public ClassDefinitionBuilder addLongArrayField(String fieldName)
public ClassDefinitionBuilder addDoubleArrayField(String fieldName)
public ClassDefinitionBuilder addFloatArrayField(String fieldName)
public ClassDefinitionBuilder addShortArrayField(String fieldName)
public ClassDefinitionBuilder addUTFArrayField(String fieldName)
public ClassDefinitionBuilder addPortableField(String fieldName, ClassDefinition def)
public ClassDefinitionBuilder addPortableArrayField(String fieldName, ClassDefinition def)
public ClassDefinitionBuilder addField(FieldDefinitionImpl fieldDefinition)
public ClassDefinition build()
public int getFactoryId()
public int getClassId()
public int getVersion()
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.