Interface IncomeRepository
- All Known Implementing Classes:
MongoIncomeRepository
public interface IncomeRepository
Interface used for dealing with storage and retrieval of income
-
Method Summary
Modifier and TypeMethodDescriptionchangeIncome
(int id, BigDecimal newAmount) Changes the income with given IDgetIncome
(int id) Finds the income with given idFinds all the incomes savedsaveIncome
(Income income) Saves the income to storage
-
Method Details
-
saveIncome
-
getIncome
-
getIncomes
-
changeIncome
Changes the income with given ID- 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- Returns:
- new income if changed, else empty
-