Class IncomeViewCLI

java.lang.Object
com.truebubo.maniflow.income.IncomeViewCLI

public class IncomeViewCLI extends Object
CLI Frontend for income portion of the application
  • Constructor Details

    • IncomeViewCLI

      public IncomeViewCLI(IncomeService incomeService)
      CLI front-end for incomes
      Parameters:
      incomeService - service for accessing income back-end
  • Method Details

    • showIncomes

      public void showIncomes()
      Displays the list of all the incomes for the user
    • addIncome

      public void addIncome(Income income)
      Saves the income
      Parameters:
      income - Information about the income to be added
    • changeIncome

      public void changeIncome(int id, @NonNull BigDecimal newAmount)
      Change the value on the income with given id
      Parameters:
      id - ID identifying the income. It is the left value displayed when calling showIncomes
      newAmount - Will update the value to this value. If set to zero. The value will be removed