| Modifier and Type | Field and Description |
|---|---|
private ICity |
city |
private Date |
date |
private List<IDebt> |
debts |
private List<ILoanProposal> |
loanProposals |
private int |
maxRequestsPerWeek |
private List<ILoanRequest> |
requests |
| Constructor and Description |
|---|
LoanerState(ICity city) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(LoanProposal proposal)
Add a loan proposal.
|
void |
add(LoanRequest request)
Add a loan request.
|
void |
addDebt(IDebt debt)
Add a new debt to the list.
|
void |
clearOldRequests()
Remove request that are older than a certain time span.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCity, getDebts, getLoanProposals, getRequests@Value(value="${loaner.max.age.request}")
private int maxRequestsPerWeek
private final ICity city
private List<ILoanRequest> requests
private List<ILoanProposal> loanProposals
@Autowired private Date date
public LoanerState(ICity city)
public void add(LoanProposal proposal)
ILoanerpublic void add(LoanRequest request)
ILoanerpublic void clearOldRequests()
ILoanerclearOldRequests in interface ILoanerCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.