com.hazelcast.nio.serialization
Class ClassDefinitionBuilder

java.lang.Object
  extended by 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)

Constructor Summary
ClassDefinitionBuilder(int factoryId, int classId)
           
ClassDefinitionBuilder(int factoryId, int classId, int version)
           
 
Method Summary
 ClassDefinitionBuilder addBooleanField(String fieldName)
           
 ClassDefinitionBuilder addByteArrayField(String fieldName)
           
 ClassDefinitionBuilder addByteField(String fieldName)
           
 ClassDefinitionBuilder addCharArrayField(String fieldName)
           
 ClassDefinitionBuilder addCharField(String fieldName)
           
 ClassDefinitionBuilder addDoubleArrayField(String fieldName)
           
 ClassDefinitionBuilder addDoubleField(String fieldName)
           
 ClassDefinitionBuilder addFloatArrayField(String fieldName)
           
 ClassDefinitionBuilder addFloatField(String fieldName)
           
 ClassDefinitionBuilder addIntArrayField(String fieldName)
           
 ClassDefinitionBuilder addIntField(String fieldName)
           
 ClassDefinitionBuilder addLongArrayField(String fieldName)
           
 ClassDefinitionBuilder addLongField(String fieldName)
           
 ClassDefinitionBuilder addPortableArrayField(String fieldName, ClassDefinition def)
           
 ClassDefinitionBuilder addPortableField(String fieldName, ClassDefinition def)
           
 ClassDefinitionBuilder addShortArrayField(String fieldName)
           
 ClassDefinitionBuilder addShortField(String fieldName)
           
 ClassDefinitionBuilder addUTFField(String fieldName)
           
 ClassDefinition build()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDefinitionBuilder

public ClassDefinitionBuilder(int factoryId,
                              int classId)

ClassDefinitionBuilder

public ClassDefinitionBuilder(int factoryId,
                              int classId,
                              int version)
Method Detail

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.