Package org.apache.fineract.avro.loan.v1
Class CollectionDataV1
java.lang.Object
org.apache.avro.specific.SpecificRecordBase
org.apache.fineract.avro.loan.v1.CollectionDataV1
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<org.apache.avro.specific.SpecificRecord>,org.apache.avro.generic.GenericContainer,org.apache.avro.generic.GenericRecord,org.apache.avro.generic.IndexedRecord,org.apache.avro.specific.SpecificRecord,ByteBufferSerializable
public class CollectionDataV1
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord, ByteBufferSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRecordBuilder for CollectionDataV1 instances. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CollectionDataV1(BigDecimal availableDisbursementAmount, Integer pastDueDays, String nextPaymentDueDate, Integer delinquentDays, String delinquentDate, BigDecimal delinquentAmount, String lastPaymentDate, BigDecimal lastPaymentAmount, String lastRepaymentDate, BigDecimal lastRepaymentAmount, List<DelinquencyPausePeriodV1> delinquencyPausePeriods, List<LoanInstallmentDelinquencyBucketDataV1> installmentDelinquencyBuckets, BigDecimal delinquentPrincipal, BigDecimal delinquentInterest, BigDecimal delinquentFee, BigDecimal delinquentPenalty) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.avro.message.BinaryMessageDecoder<CollectionDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.static CollectionDataV1Deserializes a CollectionDataV1 from a ByteBuffer.get(int field$) Gets the value of the 'availableDisbursementAmount' field.static org.apache.avro.Schemastatic org.apache.avro.message.BinaryMessageDecoder<CollectionDataV1> Return the BinaryMessageDecoder instance used by this class.Gets the value of the 'delinquencyPausePeriods' field.Gets the value of the 'delinquentAmount' field.Gets the value of the 'delinquentDate' field.Gets the value of the 'delinquentDays' field.Gets the value of the 'delinquentFee' field.Gets the value of the 'delinquentInterest' field.Gets the value of the 'delinquentPenalty' field.Gets the value of the 'delinquentPrincipal' field.static org.apache.avro.message.BinaryMessageEncoder<CollectionDataV1> Return the BinaryMessageEncoder instance used by this class.Gets the value of the 'installmentDelinquencyBuckets' field.Gets the value of the 'lastPaymentAmount' field.Gets the value of the 'lastPaymentDate' field.Gets the value of the 'lastRepaymentAmount' field.Gets the value of the 'lastRepaymentDate' field.Gets the value of the 'nextPaymentDueDate' field.Gets the value of the 'pastDueDays' field.org.apache.avro.Schemaorg.apache.avro.specific.SpecificDatastatic CollectionDataV1.BuilderCreates a new CollectionDataV1 RecordBuilder.static CollectionDataV1.BuildernewBuilder(CollectionDataV1 other) Creates a new CollectionDataV1 RecordBuilder by copying an existing CollectionDataV1 instance.static CollectionDataV1.BuilderCreates a new CollectionDataV1 RecordBuilder by copying an existing Builder.voidvoidvoidSets the value of the 'availableDisbursementAmount' field.voidSets the value of the 'delinquencyPausePeriods' field.voidsetDelinquentAmount(BigDecimal value) Sets the value of the 'delinquentAmount' field.voidsetDelinquentDate(String value) Sets the value of the 'delinquentDate' field.voidsetDelinquentDays(Integer value) Sets the value of the 'delinquentDays' field.voidsetDelinquentFee(BigDecimal value) Sets the value of the 'delinquentFee' field.voidsetDelinquentInterest(BigDecimal value) Sets the value of the 'delinquentInterest' field.voidsetDelinquentPenalty(BigDecimal value) Sets the value of the 'delinquentPenalty' field.voidsetDelinquentPrincipal(BigDecimal value) Sets the value of the 'delinquentPrincipal' field.voidSets the value of the 'installmentDelinquencyBuckets' field.voidsetLastPaymentAmount(BigDecimal value) Sets the value of the 'lastPaymentAmount' field.voidsetLastPaymentDate(String value) Sets the value of the 'lastPaymentDate' field.voidsetLastRepaymentAmount(BigDecimal value) Sets the value of the 'lastRepaymentAmount' field.voidsetLastRepaymentDate(String value) Sets the value of the 'lastRepaymentDate' field.voidsetNextPaymentDueDate(String value) Sets the value of the 'nextPaymentDueDate' field.voidsetPastDueDays(Integer value) Sets the value of the 'pastDueDays' field.Serializes this CollectionDataV1 to a ByteBuffer.voidMethods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, get, getConversion, getConversion, hasCustomCoders, hashCode, put, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.avro.generic.GenericRecord
hasField
-
Field Details
-
SCHEMA$
public static final org.apache.avro.Schema SCHEMA$
-
-
Constructor Details
-
CollectionDataV1
public CollectionDataV1()Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should usenewBuilder(). -
CollectionDataV1
public CollectionDataV1(BigDecimal availableDisbursementAmount, Integer pastDueDays, String nextPaymentDueDate, Integer delinquentDays, String delinquentDate, BigDecimal delinquentAmount, String lastPaymentDate, BigDecimal lastPaymentAmount, String lastRepaymentDate, BigDecimal lastRepaymentAmount, List<DelinquencyPausePeriodV1> delinquencyPausePeriods, List<LoanInstallmentDelinquencyBucketDataV1> installmentDelinquencyBuckets, BigDecimal delinquentPrincipal, BigDecimal delinquentInterest, BigDecimal delinquentFee, BigDecimal delinquentPenalty) All-args constructor.- Parameters:
availableDisbursementAmount- The new value for availableDisbursementAmountpastDueDays- The new value for pastDueDaysnextPaymentDueDate- The new value for nextPaymentDueDatedelinquentDays- The new value for delinquentDaysdelinquentDate- The new value for delinquentDatedelinquentAmount- The new value for delinquentAmountlastPaymentDate- The new value for lastPaymentDatelastPaymentAmount- The new value for lastPaymentAmountlastRepaymentDate- The new value for lastRepaymentDatelastRepaymentAmount- The new value for lastRepaymentAmountdelinquencyPausePeriods- The new value for delinquencyPausePeriodsinstallmentDelinquencyBuckets- The new value for installmentDelinquencyBucketsdelinquentPrincipal- The new value for delinquentPrincipaldelinquentInterest- The new value for delinquentInterestdelinquentFee- The new value for delinquentFeedelinquentPenalty- The new value for delinquentPenalty
-
-
Method Details
-
getClassSchema
public static org.apache.avro.Schema getClassSchema() -
getEncoder
Return the BinaryMessageEncoder instance used by this class.- Returns:
- the message encoder used by this class
-
getDecoder
Return the BinaryMessageDecoder instance used by this class.- Returns:
- the message decoder used by this class
-
createDecoder
public static org.apache.avro.message.BinaryMessageDecoder<CollectionDataV1> createDecoder(org.apache.avro.message.SchemaStore resolver) Create a new BinaryMessageDecoder instance for this class that uses the specifiedSchemaStore.- Parameters:
resolver- aSchemaStoreused to find schemas by fingerprint- Returns:
- a BinaryMessageDecoder instance for this class backed by the given SchemaStore
-
toByteBuffer
Serializes this CollectionDataV1 to a ByteBuffer.- Specified by:
toByteBufferin interfaceByteBufferSerializable- Returns:
- a buffer holding the serialized data for this instance
- Throws:
IOException- if this instance could not be serialized
-
fromByteBuffer
Deserializes a CollectionDataV1 from a ByteBuffer.- Parameters:
b- a byte buffer holding serialized data for an instance of this class- Returns:
- a CollectionDataV1 instance decoded from the given buffer
- Throws:
IOException- if the given bytes could not be deserialized into an instance of this class
-
getSpecificData
public org.apache.avro.specific.SpecificData getSpecificData()- Overrides:
getSpecificDatain classorg.apache.avro.specific.SpecificRecordBase
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchemain interfaceorg.apache.avro.generic.GenericContainer
-
get
- Specified by:
getin interfaceorg.apache.avro.generic.IndexedRecord
-
put
- Specified by:
putin interfaceorg.apache.avro.generic.IndexedRecord
-
getAvailableDisbursementAmount
Gets the value of the 'availableDisbursementAmount' field.- Returns:
- The value of the 'availableDisbursementAmount' field.
-
setAvailableDisbursementAmount
Sets the value of the 'availableDisbursementAmount' field.- Parameters:
value- the value to set.
-
getPastDueDays
Gets the value of the 'pastDueDays' field.- Returns:
- The value of the 'pastDueDays' field.
-
setPastDueDays
Sets the value of the 'pastDueDays' field.- Parameters:
value- the value to set.
-
getNextPaymentDueDate
Gets the value of the 'nextPaymentDueDate' field.- Returns:
- The value of the 'nextPaymentDueDate' field.
-
setNextPaymentDueDate
Sets the value of the 'nextPaymentDueDate' field.- Parameters:
value- the value to set.
-
getDelinquentDays
Gets the value of the 'delinquentDays' field.- Returns:
- The value of the 'delinquentDays' field.
-
setDelinquentDays
Sets the value of the 'delinquentDays' field.- Parameters:
value- the value to set.
-
getDelinquentDate
Gets the value of the 'delinquentDate' field.- Returns:
- The value of the 'delinquentDate' field.
-
setDelinquentDate
Sets the value of the 'delinquentDate' field.- Parameters:
value- the value to set.
-
getDelinquentAmount
Gets the value of the 'delinquentAmount' field.- Returns:
- The value of the 'delinquentAmount' field.
-
setDelinquentAmount
Sets the value of the 'delinquentAmount' field.- Parameters:
value- the value to set.
-
getLastPaymentDate
Gets the value of the 'lastPaymentDate' field.- Returns:
- The value of the 'lastPaymentDate' field.
-
setLastPaymentDate
Sets the value of the 'lastPaymentDate' field.- Parameters:
value- the value to set.
-
getLastPaymentAmount
Gets the value of the 'lastPaymentAmount' field.- Returns:
- The value of the 'lastPaymentAmount' field.
-
setLastPaymentAmount
Sets the value of the 'lastPaymentAmount' field.- Parameters:
value- the value to set.
-
getLastRepaymentDate
Gets the value of the 'lastRepaymentDate' field.- Returns:
- The value of the 'lastRepaymentDate' field.
-
setLastRepaymentDate
Sets the value of the 'lastRepaymentDate' field.- Parameters:
value- the value to set.
-
getLastRepaymentAmount
Gets the value of the 'lastRepaymentAmount' field.- Returns:
- The value of the 'lastRepaymentAmount' field.
-
setLastRepaymentAmount
Sets the value of the 'lastRepaymentAmount' field.- Parameters:
value- the value to set.
-
getDelinquencyPausePeriods
Gets the value of the 'delinquencyPausePeriods' field.- Returns:
- The value of the 'delinquencyPausePeriods' field.
-
setDelinquencyPausePeriods
Sets the value of the 'delinquencyPausePeriods' field.- Parameters:
value- the value to set.
-
getInstallmentDelinquencyBuckets
Gets the value of the 'installmentDelinquencyBuckets' field.- Returns:
- The value of the 'installmentDelinquencyBuckets' field.
-
setInstallmentDelinquencyBuckets
Sets the value of the 'installmentDelinquencyBuckets' field.- Parameters:
value- the value to set.
-
getDelinquentPrincipal
Gets the value of the 'delinquentPrincipal' field.- Returns:
- The value of the 'delinquentPrincipal' field.
-
setDelinquentPrincipal
Sets the value of the 'delinquentPrincipal' field.- Parameters:
value- the value to set.
-
getDelinquentInterest
Gets the value of the 'delinquentInterest' field.- Returns:
- The value of the 'delinquentInterest' field.
-
setDelinquentInterest
Sets the value of the 'delinquentInterest' field.- Parameters:
value- the value to set.
-
getDelinquentFee
Gets the value of the 'delinquentFee' field.- Returns:
- The value of the 'delinquentFee' field.
-
setDelinquentFee
Sets the value of the 'delinquentFee' field.- Parameters:
value- the value to set.
-
getDelinquentPenalty
Gets the value of the 'delinquentPenalty' field.- Returns:
- The value of the 'delinquentPenalty' field.
-
setDelinquentPenalty
Sets the value of the 'delinquentPenalty' field.- Parameters:
value- the value to set.
-
newBuilder
Creates a new CollectionDataV1 RecordBuilder.- Returns:
- A new CollectionDataV1 RecordBuilder
-
newBuilder
Creates a new CollectionDataV1 RecordBuilder by copying an existing Builder.- Parameters:
other- The existing builder to copy.- Returns:
- A new CollectionDataV1 RecordBuilder
-
newBuilder
Creates a new CollectionDataV1 RecordBuilder by copying an existing CollectionDataV1 instance.- Parameters:
other- The existing instance to copy.- Returns:
- A new CollectionDataV1 RecordBuilder
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classorg.apache.avro.specific.SpecificRecordBase- Throws:
IOException
-