com.hazelcast.nio.serialization
Class BinaryClassDefinitionProxy
java.lang.Object
com.hazelcast.nio.serialization.BinaryClassDefinitionProxy
- All Implemented Interfaces:
- ClassDefinition
public final class BinaryClassDefinitionProxy
- extends Object
- implements ClassDefinition
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryClassDefinitionProxy
public BinaryClassDefinitionProxy(int factoryId,
int classId,
int version)
BinaryClassDefinitionProxy
public BinaryClassDefinitionProxy(int factoryId,
int classId,
int version,
byte[] binary)
getField
public FieldDefinition getField(String name)
- Specified by:
getField in interface ClassDefinition
- Parameters:
name - name of the field
- Returns:
- field definition by given name or null
getField
public FieldDefinition getField(int fieldIndex)
- Specified by:
getField in interface ClassDefinition
- Parameters:
fieldIndex - index of the field
- Returns:
- field definition by given index
hasField
public boolean hasField(String fieldName)
- Specified by:
hasField in interface ClassDefinition
- Parameters:
fieldName - field name
- Returns:
- true if this class definition contains a field named by given name
getFieldNames
public Set<String> getFieldNames()
- Specified by:
getFieldNames in interface ClassDefinition
- Returns:
- all field names contained in this class definition
getFieldType
public FieldType getFieldType(String fieldName)
- Specified by:
getFieldType in interface ClassDefinition
- Parameters:
fieldName - name of the field
- Returns:
- type of given field
getFieldClassId
public int getFieldClassId(String fieldName)
- Specified by:
getFieldClassId in interface ClassDefinition
- Parameters:
fieldName - name of the field
- Returns:
- class id of given field
getFieldVersion
public int getFieldVersion(String fieldName)
getFieldCount
public int getFieldCount()
- Specified by:
getFieldCount in interface ClassDefinition
- Returns:
- total field count
getFactoryId
public final int getFactoryId()
- Specified by:
getFactoryId in interface ClassDefinition
- Returns:
- factory id
getClassId
public final int getClassId()
- Specified by:
getClassId in interface ClassDefinition
- Returns:
- class id
getVersion
public final int getVersion()
- Specified by:
getVersion in interface ClassDefinition
- Returns:
- version
getBinary
public final byte[] getBinary()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.