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 UserAccount
ATM.currentUser
Stores 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.accounts
List to store all registered user accounts.Methods in com.myBank.bankServer that return UserAccountModifier and TypeMethodDescriptionprotected UserAccount
Bank.getUserAccount
(long accountNumber, String password) Retrieves theUserAccount
instance for the given account number and password.Methods in com.myBank.bankServer with parameters of type UserAccountModifier and TypeMethodDescriptionprotected void
Bank.deleteAccount
(UserAccount account) Deletes an existing user account after confirmation.protected long
Bank.getAccountNumber
(UserAccount account) Retrieves the account number of the given user account.protected double
Bank.getBalance
(UserAccount account) Retrieves the current balance of the given user account.protected String
Bank.getUsername
(UserAccount account) Retrieves the username associated with the given user account.protected void
Bank.transferMoney
(UserAccount account) Transfers money between two user accounts.protected void
Bank.updateAccount
(UserAccount account) Updates a user's mobile number or password.protected void
Bank.updateBalance
(UserAccount account, double amount, boolean isDeposit) Updates the balance for deposits or withdrawals.