Interface DebtRepository
- All Known Implementing Classes:
MongoDebtRepository
@Repository
public interface DebtRepository
Interface used for dealing with storage and retrieval of debt
-
Method Summary
-
Method Details
-
saveDebt
-
getDebt
-
getDebts
-
changeDebt
Changes the debt with given id- Parameters:
id
- ID identifying the debt. It is the left value displayed when calling showExpensesnewAmount
- Will update the value to this value. If set to zero. The debt will be erased- Returns:
- Value of new debt or empty if not exist
-