Package net.corda.data.config
Class ConfigurationSchemaVersion.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class ConfigurationSchemaVersion.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for ConfigurationSchemaVersion instances.
-
-
Field Summary
Fields Modifier and Type Field Description public int
majorVersion
public int
minorVersion
-
Method Summary
Modifier and Type Method Description int
getMajorVersion()
Gets the value of the 'majorVersion' field. ConfigurationSchemaVersion.Builder
setMajorVersion(int value)
Sets the value of the 'majorVersion' field. int
getMinorVersion()
Gets the value of the 'minorVersion' field. ConfigurationSchemaVersion.Builder
setMinorVersion(int value)
Sets the value of the 'minorVersion' field. boolean
hasMajorVersion()
Checks whether the 'majorVersion' field has been set. ConfigurationSchemaVersion.Builder
clearMajorVersion()
Clears the value of the 'majorVersion' field. boolean
hasMinorVersion()
Checks whether the 'minorVersion' field has been set. ConfigurationSchemaVersion.Builder
clearMinorVersion()
Clears the value of the 'minorVersion' field. ConfigurationSchemaVersion
build()
-
-
Method Detail
-
getMajorVersion
int getMajorVersion()
Gets the value of the 'majorVersion' field. The major version number for the schema
-
setMajorVersion
ConfigurationSchemaVersion.Builder setMajorVersion(int value)
Sets the value of the 'majorVersion' field. The major version number for the schema
- Parameters:
value
- The value of 'majorVersion'.
-
getMinorVersion
int getMinorVersion()
Gets the value of the 'minorVersion' field. The minor version number for the schema
-
setMinorVersion
ConfigurationSchemaVersion.Builder setMinorVersion(int value)
Sets the value of the 'minorVersion' field. The minor version number for the schema
- Parameters:
value
- The value of 'minorVersion'.
-
hasMajorVersion
boolean hasMajorVersion()
Checks whether the 'majorVersion' field has been set. The major version number for the schema
-
clearMajorVersion
ConfigurationSchemaVersion.Builder clearMajorVersion()
Clears the value of the 'majorVersion' field. The major version number for the schema
-
hasMinorVersion
boolean hasMinorVersion()
Checks whether the 'minorVersion' field has been set. The minor version number for the schema
-
clearMinorVersion
ConfigurationSchemaVersion.Builder clearMinorVersion()
Clears the value of the 'minorVersion' field. The minor version number for the schema
-
build
ConfigurationSchemaVersion build()
-
-
-
-