Uses of Class
com.myBank.bankServer.UserAccount
Packages that use UserAccount
-
Uses of UserAccount in com.myBank
Fields in com.myBank declared as UserAccountModifier and TypeFieldDescriptionprivate UserAccountATM.currentUserStores the current user session after successful login. -
Uses of UserAccount in com.myBank.bankServer
Fields in com.myBank.bankServer with type parameters of type UserAccountModifier and TypeFieldDescriptionprivate final List<UserAccount> Bank.accountsList to store all registered user accounts.Methods in com.myBank.bankServer that return UserAccountModifier and TypeMethodDescriptionprotected UserAccountBank.getUserAccount(long accountNumber, String password) Retrieves theUserAccountinstance for the given account number and password.Methods in com.myBank.bankServer with parameters of type UserAccountModifier and TypeMethodDescriptionprotected voidBank.deleteAccount(UserAccount account) Deletes an existing user account after confirmation.protected longBank.getAccountNumber(UserAccount account) Retrieves the account number of the given user account.protected doubleBank.getBalance(UserAccount account) Retrieves the current balance of the given user account.protected StringBank.getUsername(UserAccount account) Retrieves the username associated with the given user account.protected voidBank.transferMoney(UserAccount account) Transfers money between two user accounts.protected voidBank.updateAccount(UserAccount account) Updates a user's mobile number or password.protected voidBank.updateBalance(UserAccount account, double amount, boolean isDeposit) Updates the balance for deposits or withdrawals.