Class IncomeService
java.lang.Object
com.truebubo.maniflow.income.IncomeService
- All Implemented Interfaces:
MoneyExchangeService<Income>
Handles business logic behind income
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IncomeService
Service for incomes- Parameters:
incomeRepository
- Repository for data about incomes
-
-
Method Details
-
get
Gets the list of all the incomes saved by the user- Specified by:
get
in interfaceMoneyExchangeService<Income>
- Returns:
- All the incomes saved
-
add
Saves the income- Specified by:
add
in interfaceMoneyExchangeService<Income>
- Parameters:
income
- Information about the income to be added
-
change
Change the value on the income with given id- Specified by:
change
in interfaceMoneyExchangeService<Income>
- Parameters:
id
- ID identifying the income. It is the left value displayed when calling showIncomesnewAmount
- Will update the value to this value. If set to zero. The value will be removed
-