/Users/johnr/Dropbox/johnrayworth.info/largeFilesOutsideJSR/__IB-Other/Other/IA-Solutions-2019/Guy/Product/Investor's Application IA Working Final Draft/src/investor/s/application/ia/User.java |
1
2
3
4
5
6 package investor.s.application.ia;
7
8 import java.util.ArrayList;
9
10
11
12 @author
13
14 public class User {
15
16 private String userName = "not set yet";
17 private String password = "not set yet";
18 private ArrayList<Stock> stocksList = new ArrayList<Stock>();
19 private ArrayList<Transaction> transactions = new ArrayList<Transaction>();
20
21 public User(){
22
23 }
24
25 public User(String userName, String password, ArrayList<Transaction> transactions){
26 this.userName = userName;
27 this.password = password;
28 this.stocksList = stocksList;
29 this.transactions = transactions;
30 }
31
32
33 public String getUserName(){
34 return userName;
35 }
36
37 public String getPassword(){
38 return password;
39 }
40
41 public ArrayList<Stock> getStockArray(){
42 return stocksList;
43 }
44
45 public ArrayList<Transaction> getTransactions(){
46 return transactions;
47 }
48
49
50 public void setUserName(String userName){
51 this.userName = userName;
52 }
53
54 public void setPassword(String password){
55 this.password = password;
56 }
57
58 public void setStocksList(ArrayList<Stock> stocksList){
59 this.stocksList = stocksList;
60 }
61
62 public void setTransactions(ArrayList<Transaction> transactions){
63 this.transactions = transactions;
64 }
65
66 }
67