public class Account
extends java.lang.Object
Constructor and Description |
---|
Account()
constructor for Account class, initializing Account
|
Account(java.lang.String id,
char[] pw,
int type)
Constructor for Account class
|
Account(java.lang.String id,
java.lang.String pw,
int type)
Constructor for Account class
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Account ac)
Check if two Account are equal
|
int |
getAccountType()
Getter for getting account type
|
java.lang.String |
getID()
Getter for getting private Id in Account;
|
java.lang.String |
getPassword()
Getter for getting private password in Account
|
void |
printAccount()
Print account information on screen
|
void |
setAccountType(int type)
Setter for changing account type
|
void |
setID(java.lang.String id)
Setter for changing id value
|
void |
setPassword(java.lang.String pw)
Setter for changing password value
|
public Account()
public Account(java.lang.String id, java.lang.String pw, int type)
id
- idpw
- passwordtype
- account typepublic Account(java.lang.String id, char[] pw, int type)
id
- idpw
- passwordtype
- account typepublic java.lang.String getID()
public java.lang.String getPassword()
public int getAccountType()
public void setID(java.lang.String id)
id
- public void setPassword(java.lang.String pw)
pw
- public void setAccountType(int type)
type
- public void printAccount()
public boolean equals(Account ac)
ac
- another Account