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)
ClassDefinition
getField
in interface ClassDefinition
name
- name of the fieldpublic FieldDefinition getField(int fieldIndex)
ClassDefinition
getField
in interface ClassDefinition
fieldIndex
- index of the fieldpublic boolean hasField(String fieldName)
ClassDefinition
hasField
in interface ClassDefinition
fieldName
- field namepublic Set<String> getFieldNames()
ClassDefinition
getFieldNames
in interface ClassDefinition
public FieldType getFieldType(String fieldName)
ClassDefinition
getFieldType
in interface ClassDefinition
fieldName
- name of the fieldpublic int getFieldClassId(String fieldName)
ClassDefinition
getFieldClassId
in interface ClassDefinition
fieldName
- name of the fieldpublic int getFieldCount()
ClassDefinition
getFieldCount
in interface ClassDefinition
public final int getFactoryId()
ClassDefinition
getFactoryId
in interface ClassDefinition
public final int getClassId()
ClassDefinition
getClassId
in interface ClassDefinition
public final int getVersion()
ClassDefinition
getVersion
in interface ClassDefinition
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.