Package net.corda.data.packaging
Class CpkFormatVersion.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class CpkFormatVersion.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for CpkFormatVersion instances.
-
-
Method Summary
Modifier and Type Method Description int
getMajor()
Gets the value of the 'major' field. CpkFormatVersion.Builder
setMajor(int value)
Sets the value of the 'major' field. int
getMinor()
Gets the value of the 'minor' field. CpkFormatVersion.Builder
setMinor(int value)
Sets the value of the 'minor' field. boolean
hasMajor()
Checks whether the 'major' field has been set. CpkFormatVersion.Builder
clearMajor()
Clears the value of the 'major' field. boolean
hasMinor()
Checks whether the 'minor' field has been set. CpkFormatVersion.Builder
clearMinor()
Clears the value of the 'minor' field. CpkFormatVersion
build()
-
-
Method Detail
-
getMajor
int getMajor()
Gets the value of the 'major' field.
-
setMajor
CpkFormatVersion.Builder setMajor(int value)
Sets the value of the 'major' field.
- Parameters:
value
- The value of 'major'.
-
getMinor
int getMinor()
Gets the value of the 'minor' field.
-
setMinor
CpkFormatVersion.Builder setMinor(int value)
Sets the value of the 'minor' field.
- Parameters:
value
- The value of 'minor'.
-
hasMajor
boolean hasMajor()
Checks whether the 'major' field has been set.
-
clearMajor
CpkFormatVersion.Builder clearMajor()
Clears the value of the 'major' field.
-
hasMinor
boolean hasMinor()
Checks whether the 'minor' field has been set.
-
clearMinor
CpkFormatVersion.Builder clearMinor()
Clears the value of the 'minor' field.
-
build
CpkFormatVersion build()
-
-
-
-