Package nl.minetopiasdb.api.objects
Class Loan
java.lang.Object
nl.minetopiasdb.api.objects.Loan
Loan object used in
LoanManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the amount of money that was loanedGet the timestamp that the loan was createdGet the UUID of the debtor (person who has loaned the money)int
Get the ID of this loanboolean
See if the current loan is paid off.
-
Constructor Details
-
Loan
-
-
Method Details
-
getLoanId
public int getLoanId()Get the ID of this loan- Returns:
- ID of this loan
-
getDebtor
Get the UUID of the debtor (person who has loaned the money)- Returns:
- UUID of debtor
-
getAmount
public double getAmount()Get the amount of money that was loaned- Returns:
- loaned amount
-
isPaidOff
public boolean isPaidOff()See if the current loan is paid off.- Returns:
- true if loan has been paid off.
-
getCreatedOn
Get the timestamp that the loan was created- Returns:
- timestamp of loan creation
-