Interface ILoanRequest
-
- All Known Implementing Classes:
LoanRequest
public interface ILoanRequestRequest for a loan.- Author:
- Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 30, 2014
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ICitizengetCitizen()Who wants the loan.intgetDurationInWeeks()Retrieve the duration of the loan.intgetSum()Amount to be loaned.java.time.LocalDateTimeissued()Retrieve the date when the request was issued.
-
-
-
Method Detail
-
issued
java.time.LocalDateTime issued()
Retrieve the date when the request was issued. This date is always in the past.- Returns:
- date when the request has been issued.
-
getCitizen
ICitizen getCitizen()
Who wants the loan.- Returns:
- citizen who issued the request
-
getDurationInWeeks
int getDurationInWeeks()
Retrieve the duration of the loan.- Returns:
- duration of the loan request in weeks
-
getSum
int getSum()
Amount to be loaned.- Returns:
- amount to be loaned.
-
-