Uses of Class
no.ntnu.idatt1002.spendwise.data.Transaction
Packages that use Transaction
-
Uses of Transaction in no.ntnu.idatt1002.spendwise.data
Subclasses of Transaction in no.ntnu.idatt1002.spendwise.dataModifier and TypeClassDescriptionclass
Describes an expense using the Transaction class.class
Describes an Income using the Transaction class.class
Describes a recurring expense, inheriting from the Expense class.class
Describes a recurring income, inheriting from the Income class.Methods in no.ntnu.idatt1002.spendwise.data that return types with arguments of type TransactionModifier and TypeMethodDescriptionRegister.getAllTransactions()
Returns an ArrayList of all transactions in the register.Register.getTransactionByTransactionType
(boolean isExpense) Returns all transactions given a transaction type (expense/income).Category.getTransactions()
Returns all transactions in a category.Register.getTransactionsByCategoryType
(boolean recurring) Returns all transactions given a certain category type (boolean).Methods in no.ntnu.idatt1002.spendwise.data with parameters of type TransactionModifier and TypeMethodDescriptionvoid
Category.addTransaction
(Transaction t) Adds a transaction to the category.void
Register.addTransactionToCategory
(Transaction transaction, String catString) Adds a transaction to the register with a specified category.void
Category.removeTransaction
(Transaction transaction) Removes a transaction from the category.void
Register.removeTransaction
(Transaction transaction) Removes a transaction from the register.Method parameters in no.ntnu.idatt1002.spendwise.data with type arguments of type TransactionModifier and TypeMethodDescriptionvoid
Category.addAll
(List<Transaction> transactionsToAdd) Adds all transactions present in a List to the category.