Class RecurringIncome


public class RecurringIncome extends Income
Describes a recurring income, inheriting from the Income class.
  • Constructor Details

    • RecurringIncome

      public RecurringIncome(String name, String notes, String date, double amount)
      Constructor for a recurring expense.
      Parameters:
      name - Name of the expense.
      notes - Notes for the expense.
      date - Date of the expense. (Day of the month)
      amount - Amount of the expense.
  • Method Details

    • isWithinTimeFrame

      public boolean isWithinTimeFrame(LocalDate fromDate, LocalDate toDate)
      Returns whether the expense is within the given time frame.
      Overrides:
      isWithinTimeFrame in class Transaction
      Parameters:
      fromDate - The start date of the time frame.
      toDate - The end date of the time frame.
      Returns:
      True if the expense is within the time frame, false otherwise.