Class CurrencyDataV1.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<CurrencyDataV1>
org.apache.avro.specific.SpecificRecordBuilderBase<CurrencyDataV1>
org.apache.fineract.avro.generic.v1.CurrencyDataV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<CurrencyDataV1>
- Enclosing class:
CurrencyDataV1
public static class CurrencyDataV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<CurrencyDataV1>
implements org.apache.avro.data.RecordBuilder<CurrencyDataV1>
RecordBuilder for CurrencyDataV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'code' field.Clears the value of the 'decimalPlaces' field.Clears the value of the 'displayLabel' field.Clears the value of the 'displaySymbol' field.Clears the value of the 'inMultiplesOf' field.Clears the value of the 'name' field.Clears the value of the 'nameCode' field.getCode()Gets the value of the 'code' field.Gets the value of the 'decimalPlaces' field.Gets the value of the 'displayLabel' field.Gets the value of the 'displaySymbol' field.Gets the value of the 'inMultiplesOf' field.getName()Gets the value of the 'name' field.Gets the value of the 'nameCode' field.booleanhasCode()Checks whether the 'code' field has been set.booleanChecks whether the 'decimalPlaces' field has been set.booleanChecks whether the 'displayLabel' field has been set.booleanChecks whether the 'displaySymbol' field has been set.booleanChecks whether the 'inMultiplesOf' field has been set.booleanhasName()Checks whether the 'name' field has been set.booleanChecks whether the 'nameCode' field has been set.Sets the value of the 'code' field.setDecimalPlaces(Integer value) Sets the value of the 'decimalPlaces' field.setDisplayLabel(String value) Sets the value of the 'displayLabel' field.setDisplaySymbol(String value) Sets the value of the 'displaySymbol' field.setInMultiplesOf(Integer value) Sets the value of the 'inMultiplesOf' field.Sets the value of the 'name' field.setNameCode(String value) Sets the value of the 'nameCode' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getCode
Gets the value of the 'code' field.- Returns:
- The value.
-
setCode
Sets the value of the 'code' field.- Parameters:
value- The value of 'code'.- Returns:
- This builder.
-
hasCode
public boolean hasCode()Checks whether the 'code' field has been set.- Returns:
- True if the 'code' field has been set, false otherwise.
-
clearCode
Clears the value of the 'code' field.- Returns:
- This builder.
-
getName
Gets the value of the 'name' field.- Returns:
- The value.
-
setName
Sets the value of the 'name' field.- Parameters:
value- The value of 'name'.- Returns:
- This builder.
-
hasName
public boolean hasName()Checks whether the 'name' field has been set.- Returns:
- True if the 'name' field has been set, false otherwise.
-
clearName
Clears the value of the 'name' field.- Returns:
- This builder.
-
getDecimalPlaces
Gets the value of the 'decimalPlaces' field.- Returns:
- The value.
-
setDecimalPlaces
Sets the value of the 'decimalPlaces' field.- Parameters:
value- The value of 'decimalPlaces'.- Returns:
- This builder.
-
hasDecimalPlaces
public boolean hasDecimalPlaces()Checks whether the 'decimalPlaces' field has been set.- Returns:
- True if the 'decimalPlaces' field has been set, false otherwise.
-
clearDecimalPlaces
Clears the value of the 'decimalPlaces' field.- Returns:
- This builder.
-
getInMultiplesOf
Gets the value of the 'inMultiplesOf' field.- Returns:
- The value.
-
setInMultiplesOf
Sets the value of the 'inMultiplesOf' field.- Parameters:
value- The value of 'inMultiplesOf'.- Returns:
- This builder.
-
hasInMultiplesOf
public boolean hasInMultiplesOf()Checks whether the 'inMultiplesOf' field has been set.- Returns:
- True if the 'inMultiplesOf' field has been set, false otherwise.
-
clearInMultiplesOf
Clears the value of the 'inMultiplesOf' field.- Returns:
- This builder.
-
getDisplaySymbol
Gets the value of the 'displaySymbol' field.- Returns:
- The value.
-
setDisplaySymbol
Sets the value of the 'displaySymbol' field.- Parameters:
value- The value of 'displaySymbol'.- Returns:
- This builder.
-
hasDisplaySymbol
public boolean hasDisplaySymbol()Checks whether the 'displaySymbol' field has been set.- Returns:
- True if the 'displaySymbol' field has been set, false otherwise.
-
clearDisplaySymbol
Clears the value of the 'displaySymbol' field.- Returns:
- This builder.
-
getNameCode
Gets the value of the 'nameCode' field.- Returns:
- The value.
-
setNameCode
Sets the value of the 'nameCode' field.- Parameters:
value- The value of 'nameCode'.- Returns:
- This builder.
-
hasNameCode
public boolean hasNameCode()Checks whether the 'nameCode' field has been set.- Returns:
- True if the 'nameCode' field has been set, false otherwise.
-
clearNameCode
Clears the value of the 'nameCode' field.- Returns:
- This builder.
-
getDisplayLabel
Gets the value of the 'displayLabel' field.- Returns:
- The value.
-
setDisplayLabel
Sets the value of the 'displayLabel' field.- Parameters:
value- The value of 'displayLabel'.- Returns:
- This builder.
-
hasDisplayLabel
public boolean hasDisplayLabel()Checks whether the 'displayLabel' field has been set.- Returns:
- True if the 'displayLabel' field has been set, false otherwise.
-
clearDisplayLabel
Clears the value of the 'displayLabel' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<CurrencyDataV1>
-