Package org.apache.fineract.avro.loan.v1
Class LoanChargeDataRangeViewV1.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<LoanChargeDataRangeViewV1>
org.apache.avro.specific.SpecificRecordBuilderBase<LoanChargeDataRangeViewV1>
org.apache.fineract.avro.loan.v1.LoanChargeDataRangeViewV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<LoanChargeDataRangeViewV1>
- Enclosing class:
LoanChargeDataRangeViewV1
public static class LoanChargeDataRangeViewV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<LoanChargeDataRangeViewV1>
implements org.apache.avro.data.RecordBuilder<LoanChargeDataRangeViewV1>
RecordBuilder for LoanChargeDataRangeViewV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'amount' field.Clears the value of the 'currency' field.clearId()Clears the value of the 'id' field.Clears the value of the 'name' field.Gets the value of the 'amount' field.Gets the value of the 'currency' field.Gets the Builder instance for the 'currency' field and creates one if it doesn't exist yet.longgetId()Gets the value of the 'id' field.getName()Gets the value of the 'name' field.booleanChecks whether the 'amount' field has been set.booleanChecks whether the 'currency' field has been set.booleanChecks whether the 'currency' field has an active Builder instancebooleanhasId()Checks whether the 'id' field has been set.booleanhasName()Checks whether the 'name' field has been set.setAmount(BigDecimal value) Sets the value of the 'amount' field.setCurrency(CurrencyDataV1 value) Sets the value of the 'currency' field.Sets the Builder instance for the 'currency' fieldsetId(long value) Sets the value of the 'id' field.Sets the value of the 'name' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
getId
public long getId()Gets the value of the 'id' field.- Returns:
- The value.
-
setId
Sets the value of the 'id' field.- Parameters:
value- The value of 'id'.- Returns:
- This builder.
-
hasId
public boolean hasId()Checks whether the 'id' field has been set.- Returns:
- True if the 'id' field has been set, false otherwise.
-
clearId
Clears the value of the 'id' 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.
-
getCurrency
Gets the value of the 'currency' field.- Returns:
- The value.
-
setCurrency
Sets the value of the 'currency' field.- Parameters:
value- The value of 'currency'.- Returns:
- This builder.
-
hasCurrency
public boolean hasCurrency()Checks whether the 'currency' field has been set.- Returns:
- True if the 'currency' field has been set, false otherwise.
-
getCurrencyBuilder
Gets the Builder instance for the 'currency' field and creates one if it doesn't exist yet.- Returns:
- This builder.
-
setCurrencyBuilder
Sets the Builder instance for the 'currency' field- Parameters:
value- The builder instance that must be set.- Returns:
- This builder.
-
hasCurrencyBuilder
public boolean hasCurrencyBuilder()Checks whether the 'currency' field has an active Builder instance- Returns:
- True if the 'currency' field has an active Builder instance
-
clearCurrency
Clears the value of the 'currency' field.- Returns:
- This builder.
-
getAmount
Gets the value of the 'amount' field.- Returns:
- The value.
-
setAmount
Sets the value of the 'amount' field.- Parameters:
value- The value of 'amount'.- Returns:
- This builder.
-
hasAmount
public boolean hasAmount()Checks whether the 'amount' field has been set.- Returns:
- True if the 'amount' field has been set, false otherwise.
-
clearAmount
Clears the value of the 'amount' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<LoanChargeDataRangeViewV1>
-