Package org.apache.fineract.avro.loan.v1
Class LoanScheduleDataV1.Builder
java.lang.Object
org.apache.avro.data.RecordBuilderBase<LoanScheduleDataV1>
org.apache.avro.specific.SpecificRecordBuilderBase<LoanScheduleDataV1>
org.apache.fineract.avro.loan.v1.LoanScheduleDataV1.Builder
- All Implemented Interfaces:
org.apache.avro.data.RecordBuilder<LoanScheduleDataV1>
- Enclosing class:
LoanScheduleDataV1
public static class LoanScheduleDataV1.Builder
extends org.apache.avro.specific.SpecificRecordBuilderBase<LoanScheduleDataV1>
implements org.apache.avro.data.RecordBuilder<LoanScheduleDataV1>
RecordBuilder for LoanScheduleDataV1 instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of the 'currency' field.Clears the value of the 'futurePeriods' field.Clears the value of the 'loanTermInDays' field.Clears the value of the 'periods' field.Clears the value of the 'totalFeeChargesCharged' field.Clears the value of the 'totalInterestCharged' field.Clears the value of the 'totalOutstanding' field.Clears the value of the 'totalPaidInAdvance' field.Clears the value of the 'totalPaidLate' field.Clears the value of the 'totalPenaltyChargesCharged' field.Clears the value of the 'totalPrincipalDisbursed' field.Clears the value of the 'totalPrincipalExpected' field.Clears the value of the 'totalPrincipalPaid' field.Clears the value of the 'totalRepayment' field.Clears the value of the 'totalRepaymentExpected' field.Clears the value of the 'totalWaived' field.Clears the value of the 'totalWrittenOff' 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.Gets the value of the 'futurePeriods' field.Gets the value of the 'loanTermInDays' field.Gets the value of the 'periods' field.Gets the value of the 'totalFeeChargesCharged' field.Gets the value of the 'totalInterestCharged' field.Gets the value of the 'totalOutstanding' field.Gets the value of the 'totalPaidInAdvance' field.Gets the value of the 'totalPaidLate' field.Gets the value of the 'totalPenaltyChargesCharged' field.Gets the value of the 'totalPrincipalDisbursed' field.Gets the value of the 'totalPrincipalExpected' field.Gets the value of the 'totalPrincipalPaid' field.Gets the value of the 'totalRepayment' field.Gets the value of the 'totalRepaymentExpected' field.Gets the value of the 'totalWaived' field.Gets the value of the 'totalWrittenOff' field.booleanChecks whether the 'currency' field has been set.booleanChecks whether the 'currency' field has an active Builder instancebooleanChecks whether the 'futurePeriods' field has been set.booleanChecks whether the 'loanTermInDays' field has been set.booleanChecks whether the 'periods' field has been set.booleanChecks whether the 'totalFeeChargesCharged' field has been set.booleanChecks whether the 'totalInterestCharged' field has been set.booleanChecks whether the 'totalOutstanding' field has been set.booleanChecks whether the 'totalPaidInAdvance' field has been set.booleanChecks whether the 'totalPaidLate' field has been set.booleanChecks whether the 'totalPenaltyChargesCharged' field has been set.booleanChecks whether the 'totalPrincipalDisbursed' field has been set.booleanChecks whether the 'totalPrincipalExpected' field has been set.booleanChecks whether the 'totalPrincipalPaid' field has been set.booleanChecks whether the 'totalRepayment' field has been set.booleanChecks whether the 'totalRepaymentExpected' field has been set.booleanChecks whether the 'totalWaived' field has been set.booleanChecks whether the 'totalWrittenOff' field has been set.setCurrency(CurrencyDataV1 value) Sets the value of the 'currency' field.Sets the Builder instance for the 'currency' fieldSets the value of the 'futurePeriods' field.setLoanTermInDays(Integer value) Sets the value of the 'loanTermInDays' field.setPeriods(List<LoanSchedulePeriodDataV1> value) Sets the value of the 'periods' field.Sets the value of the 'totalFeeChargesCharged' field.Sets the value of the 'totalInterestCharged' field.setTotalOutstanding(BigDecimal value) Sets the value of the 'totalOutstanding' field.setTotalPaidInAdvance(BigDecimal value) Sets the value of the 'totalPaidInAdvance' field.setTotalPaidLate(BigDecimal value) Sets the value of the 'totalPaidLate' field.Sets the value of the 'totalPenaltyChargesCharged' field.Sets the value of the 'totalPrincipalDisbursed' field.Sets the value of the 'totalPrincipalExpected' field.setTotalPrincipalPaid(BigDecimal value) Sets the value of the 'totalPrincipalPaid' field.setTotalRepayment(BigDecimal value) Sets the value of the 'totalRepayment' field.Sets the value of the 'totalRepaymentExpected' field.setTotalWaived(BigDecimal value) Sets the value of the 'totalWaived' field.setTotalWrittenOff(BigDecimal value) Sets the value of the 'totalWrittenOff' field.Methods inherited from class org.apache.avro.data.RecordBuilderBase
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
-
Method Details
-
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.
-
getLoanTermInDays
Gets the value of the 'loanTermInDays' field.- Returns:
- The value.
-
setLoanTermInDays
Sets the value of the 'loanTermInDays' field.- Parameters:
value- The value of 'loanTermInDays'.- Returns:
- This builder.
-
hasLoanTermInDays
public boolean hasLoanTermInDays()Checks whether the 'loanTermInDays' field has been set.- Returns:
- True if the 'loanTermInDays' field has been set, false otherwise.
-
clearLoanTermInDays
Clears the value of the 'loanTermInDays' field.- Returns:
- This builder.
-
getTotalPrincipalDisbursed
Gets the value of the 'totalPrincipalDisbursed' field.- Returns:
- The value.
-
setTotalPrincipalDisbursed
Sets the value of the 'totalPrincipalDisbursed' field.- Parameters:
value- The value of 'totalPrincipalDisbursed'.- Returns:
- This builder.
-
hasTotalPrincipalDisbursed
public boolean hasTotalPrincipalDisbursed()Checks whether the 'totalPrincipalDisbursed' field has been set.- Returns:
- True if the 'totalPrincipalDisbursed' field has been set, false otherwise.
-
clearTotalPrincipalDisbursed
Clears the value of the 'totalPrincipalDisbursed' field.- Returns:
- This builder.
-
getTotalPrincipalExpected
Gets the value of the 'totalPrincipalExpected' field.- Returns:
- The value.
-
setTotalPrincipalExpected
Sets the value of the 'totalPrincipalExpected' field.- Parameters:
value- The value of 'totalPrincipalExpected'.- Returns:
- This builder.
-
hasTotalPrincipalExpected
public boolean hasTotalPrincipalExpected()Checks whether the 'totalPrincipalExpected' field has been set.- Returns:
- True if the 'totalPrincipalExpected' field has been set, false otherwise.
-
clearTotalPrincipalExpected
Clears the value of the 'totalPrincipalExpected' field.- Returns:
- This builder.
-
getTotalPrincipalPaid
Gets the value of the 'totalPrincipalPaid' field.- Returns:
- The value.
-
setTotalPrincipalPaid
Sets the value of the 'totalPrincipalPaid' field.- Parameters:
value- The value of 'totalPrincipalPaid'.- Returns:
- This builder.
-
hasTotalPrincipalPaid
public boolean hasTotalPrincipalPaid()Checks whether the 'totalPrincipalPaid' field has been set.- Returns:
- True if the 'totalPrincipalPaid' field has been set, false otherwise.
-
clearTotalPrincipalPaid
Clears the value of the 'totalPrincipalPaid' field.- Returns:
- This builder.
-
getTotalInterestCharged
Gets the value of the 'totalInterestCharged' field.- Returns:
- The value.
-
setTotalInterestCharged
Sets the value of the 'totalInterestCharged' field.- Parameters:
value- The value of 'totalInterestCharged'.- Returns:
- This builder.
-
hasTotalInterestCharged
public boolean hasTotalInterestCharged()Checks whether the 'totalInterestCharged' field has been set.- Returns:
- True if the 'totalInterestCharged' field has been set, false otherwise.
-
clearTotalInterestCharged
Clears the value of the 'totalInterestCharged' field.- Returns:
- This builder.
-
getTotalFeeChargesCharged
Gets the value of the 'totalFeeChargesCharged' field.- Returns:
- The value.
-
setTotalFeeChargesCharged
Sets the value of the 'totalFeeChargesCharged' field.- Parameters:
value- The value of 'totalFeeChargesCharged'.- Returns:
- This builder.
-
hasTotalFeeChargesCharged
public boolean hasTotalFeeChargesCharged()Checks whether the 'totalFeeChargesCharged' field has been set.- Returns:
- True if the 'totalFeeChargesCharged' field has been set, false otherwise.
-
clearTotalFeeChargesCharged
Clears the value of the 'totalFeeChargesCharged' field.- Returns:
- This builder.
-
getTotalPenaltyChargesCharged
Gets the value of the 'totalPenaltyChargesCharged' field.- Returns:
- The value.
-
setTotalPenaltyChargesCharged
Sets the value of the 'totalPenaltyChargesCharged' field.- Parameters:
value- The value of 'totalPenaltyChargesCharged'.- Returns:
- This builder.
-
hasTotalPenaltyChargesCharged
public boolean hasTotalPenaltyChargesCharged()Checks whether the 'totalPenaltyChargesCharged' field has been set.- Returns:
- True if the 'totalPenaltyChargesCharged' field has been set, false otherwise.
-
clearTotalPenaltyChargesCharged
Clears the value of the 'totalPenaltyChargesCharged' field.- Returns:
- This builder.
-
getTotalWaived
Gets the value of the 'totalWaived' field.- Returns:
- The value.
-
setTotalWaived
Sets the value of the 'totalWaived' field.- Parameters:
value- The value of 'totalWaived'.- Returns:
- This builder.
-
hasTotalWaived
public boolean hasTotalWaived()Checks whether the 'totalWaived' field has been set.- Returns:
- True if the 'totalWaived' field has been set, false otherwise.
-
clearTotalWaived
Clears the value of the 'totalWaived' field.- Returns:
- This builder.
-
getTotalWrittenOff
Gets the value of the 'totalWrittenOff' field.- Returns:
- The value.
-
setTotalWrittenOff
Sets the value of the 'totalWrittenOff' field.- Parameters:
value- The value of 'totalWrittenOff'.- Returns:
- This builder.
-
hasTotalWrittenOff
public boolean hasTotalWrittenOff()Checks whether the 'totalWrittenOff' field has been set.- Returns:
- True if the 'totalWrittenOff' field has been set, false otherwise.
-
clearTotalWrittenOff
Clears the value of the 'totalWrittenOff' field.- Returns:
- This builder.
-
getTotalRepaymentExpected
Gets the value of the 'totalRepaymentExpected' field.- Returns:
- The value.
-
setTotalRepaymentExpected
Sets the value of the 'totalRepaymentExpected' field.- Parameters:
value- The value of 'totalRepaymentExpected'.- Returns:
- This builder.
-
hasTotalRepaymentExpected
public boolean hasTotalRepaymentExpected()Checks whether the 'totalRepaymentExpected' field has been set.- Returns:
- True if the 'totalRepaymentExpected' field has been set, false otherwise.
-
clearTotalRepaymentExpected
Clears the value of the 'totalRepaymentExpected' field.- Returns:
- This builder.
-
getTotalRepayment
Gets the value of the 'totalRepayment' field.- Returns:
- The value.
-
setTotalRepayment
Sets the value of the 'totalRepayment' field.- Parameters:
value- The value of 'totalRepayment'.- Returns:
- This builder.
-
hasTotalRepayment
public boolean hasTotalRepayment()Checks whether the 'totalRepayment' field has been set.- Returns:
- True if the 'totalRepayment' field has been set, false otherwise.
-
clearTotalRepayment
Clears the value of the 'totalRepayment' field.- Returns:
- This builder.
-
getTotalPaidInAdvance
Gets the value of the 'totalPaidInAdvance' field.- Returns:
- The value.
-
setTotalPaidInAdvance
Sets the value of the 'totalPaidInAdvance' field.- Parameters:
value- The value of 'totalPaidInAdvance'.- Returns:
- This builder.
-
hasTotalPaidInAdvance
public boolean hasTotalPaidInAdvance()Checks whether the 'totalPaidInAdvance' field has been set.- Returns:
- True if the 'totalPaidInAdvance' field has been set, false otherwise.
-
clearTotalPaidInAdvance
Clears the value of the 'totalPaidInAdvance' field.- Returns:
- This builder.
-
getTotalPaidLate
Gets the value of the 'totalPaidLate' field.- Returns:
- The value.
-
setTotalPaidLate
Sets the value of the 'totalPaidLate' field.- Parameters:
value- The value of 'totalPaidLate'.- Returns:
- This builder.
-
hasTotalPaidLate
public boolean hasTotalPaidLate()Checks whether the 'totalPaidLate' field has been set.- Returns:
- True if the 'totalPaidLate' field has been set, false otherwise.
-
clearTotalPaidLate
Clears the value of the 'totalPaidLate' field.- Returns:
- This builder.
-
getTotalOutstanding
Gets the value of the 'totalOutstanding' field.- Returns:
- The value.
-
setTotalOutstanding
Sets the value of the 'totalOutstanding' field.- Parameters:
value- The value of 'totalOutstanding'.- Returns:
- This builder.
-
hasTotalOutstanding
public boolean hasTotalOutstanding()Checks whether the 'totalOutstanding' field has been set.- Returns:
- True if the 'totalOutstanding' field has been set, false otherwise.
-
clearTotalOutstanding
Clears the value of the 'totalOutstanding' field.- Returns:
- This builder.
-
getPeriods
Gets the value of the 'periods' field.- Returns:
- The value.
-
setPeriods
Sets the value of the 'periods' field.- Parameters:
value- The value of 'periods'.- Returns:
- This builder.
-
hasPeriods
public boolean hasPeriods()Checks whether the 'periods' field has been set.- Returns:
- True if the 'periods' field has been set, false otherwise.
-
clearPeriods
Clears the value of the 'periods' field.- Returns:
- This builder.
-
getFuturePeriods
Gets the value of the 'futurePeriods' field.- Returns:
- The value.
-
setFuturePeriods
Sets the value of the 'futurePeriods' field.- Parameters:
value- The value of 'futurePeriods'.- Returns:
- This builder.
-
hasFuturePeriods
public boolean hasFuturePeriods()Checks whether the 'futurePeriods' field has been set.- Returns:
- True if the 'futurePeriods' field has been set, false otherwise.
-
clearFuturePeriods
Clears the value of the 'futurePeriods' field.- Returns:
- This builder.
-
build
- Specified by:
buildin interfaceorg.apache.avro.data.RecordBuilder<LoanScheduleDataV1>
-