| Modifier and Type | Field and Description |
|---|---|
private int |
amount |
private ICreditor |
creditor |
private ICitizen |
debitor |
private org.joda.time.DateTime |
dueDate |
private double |
interest |
private org.joda.time.DateTime |
loanTakeOut |
| Constructor and Description |
|---|
Debt() |
| Modifier and Type | Method and Description |
|---|---|
long |
getLoanedDuration(org.joda.time.DateTime now)
Retrieve the duration in full days since taking the loan.
|
long |
getTotalDuration()
Retrieve the total duration of the loan in days.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAmount, getCreditor, getDebitor, getDueDate, getInterestprivate final ICitizen debitor
private final ICreditor creditor
@NonNull private final org.joda.time.DateTime dueDate
private final double interest
private final int amount
@NonNull private final org.joda.time.DateTime loanTakeOut
public long getLoanedDuration(org.joda.time.DateTime now)
IDebtgetLoanedDuration in interface IDebtpublic long getTotalDuration()
IDebtgetTotalDuration in interface IDebtCopyright © 2011-2016 Sahits GmbH. All Rights Reserved.