Package no.ntnu.idatt1002.spendwise.data
Class Income
java.lang.Object
no.ntnu.idatt1002.spendwise.data.Transaction
no.ntnu.idatt1002.spendwise.data.Income
- Direct Known Subclasses:
RecurringIncome
Describes an Income using the Transaction class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the amount of the expense as a string with currency notation.Methods inherited from class no.ntnu.idatt1002.spendwise.data.Transaction
getAmount, getAmountString, getCategory, getDate, getName, getNotes, isWithinTimeFrame, setCategory
-
Constructor Details
-
Income
-
-
Method Details
-
amountToString
Returns the amount of the expense as a string with currency notation.- Specified by:
amountToString
in classTransaction
- Returns:
- The amount of the expense as a string representation.
-