public class ClassDefinitionImpl extends Object implements ClassDefinition
| Constructor and Description |
|---|
ClassDefinitionImpl(int factoryId,
int classId,
int version) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldDef(FieldDefinitionImpl fd) |
boolean |
equals(Object o) |
int |
getClassId()
Returns the class id.
|
int |
getFactoryId()
Returns the factory id.
|
FieldDefinition |
getField(int fieldIndex)
Gets the FieldDefinition for a given fieldIndex.
|
FieldDefinition |
getField(String name)
Gets the FieldDefinition for a particular field.
|
int |
getFieldClassId(String fieldName)
Gets the class id of a field.
|
int |
getFieldCount()
Returns the field count.
|
Set<String> |
getFieldNames()
Returns a Set of all field names.
|
FieldType |
getFieldType(String fieldName)
Get the FieldType for a given fieldName.
|
int |
getVersion()
Returns the version.
|
boolean |
hasField(String fieldName)
Checks if there exists a FieldDefinition with the given fieldName.
|
int |
hashCode() |
String |
toString() |
public ClassDefinitionImpl(int factoryId,
int classId,
int version)
public void addFieldDef(FieldDefinitionImpl fd)
public FieldDefinition getField(String name)
ClassDefinitiongetField in interface ClassDefinitionname - name of the fieldpublic FieldDefinition getField(int fieldIndex)
ClassDefinitiongetField in interface ClassDefinitionfieldIndex - index of the fieldpublic boolean hasField(String fieldName)
ClassDefinitionhasField in interface ClassDefinitionfieldName - field namepublic Set<String> getFieldNames()
ClassDefinitiongetFieldNames in interface ClassDefinitionpublic FieldType getFieldType(String fieldName)
ClassDefinitiongetFieldType in interface ClassDefinitionfieldName - name of the fieldpublic int getFieldClassId(String fieldName)
ClassDefinitiongetFieldClassId in interface ClassDefinitionfieldName - name of the fieldpublic int getFieldCount()
ClassDefinitiongetFieldCount in interface ClassDefinitionpublic final int getFactoryId()
ClassDefinitiongetFactoryId in interface ClassDefinitionpublic final int getClassId()
ClassDefinitiongetClassId in interface ClassDefinitionpublic final int getVersion()
ClassDefinitiongetVersion in interface ClassDefinitionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.