Class Loan

java.lang.Object
nl.minetopiasdb.api.objects.Loan

public class Loan extends Object
Loan object used in LoanManager
  • Constructor Details

    • Loan

      public Loan(int loanId, UUID debtor, double amount, boolean paidOff, Timestamp createdOn)
  • Method Details

    • getLoanId

      public int getLoanId()
      Get the ID of this loan
      Returns:
      ID of this loan
    • getDebtor

      public UUID 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

      public Timestamp getCreatedOn()
      Get the timestamp that the loan was created
      Returns:
      timestamp of loan creation