diff --git a/src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Stock.java b/src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Stock.java index 81f15fc..b818084 100644 --- a/src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Stock.java +++ b/src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Stock.java @@ -4,21 +4,29 @@ import java.util.List; public class Stock { - private String symbol; - private String company; - private List prices; - public Stock(String symbol, String company, List prices) { - this.symbol = symbol; - this.company = company; - this.prices = prices; - } - public String getSymbol() {return symbol;} - public String getCompany() {return company;} - public List getSalesPrices() {return prices;} - public void addNewSalesPrices(List prices) { - this.prices = prices; - } + private final String symbol; + private final String company; + private List prices; + public Stock(String symbol, String company, List prices) { + this.symbol = symbol; + this.company = company; + this.prices = prices; + } + public String getSymbol() { + return symbol; + } + public String getCompany() { + return company; + } + + public List getSalesPrices() { + return prices; + } + + public void addNewSalesPrices(List prices) { + this.prices = prices; + } }