Skip to content

Commit

Permalink
Format code according to checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
einaskoi committed Feb 9, 2026
1 parent 868c501 commit 99586f2
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Stock.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,29 @@
import java.util.List;

public class Stock {
private String symbol;
private String company;
private List<BigDecimal> prices;
public Stock(String symbol, String company, List<BigDecimal> prices) {
this.symbol = symbol;
this.company = company;
this.prices = prices;
}
public String getSymbol() {return symbol;}
public String getCompany() {return company;}
public List<BigDecimal> getSalesPrices() {return prices;}
public void addNewSalesPrices(List<BigDecimal> prices) {
this.prices = prices;
}
private final String symbol;
private final String company;
private List<BigDecimal> prices;

public Stock(String symbol, String company, List<BigDecimal> prices) {
this.symbol = symbol;
this.company = company;
this.prices = prices;
}

public String getSymbol() {
return symbol;
}

public String getCompany() {
return company;
}

public List<BigDecimal> getSalesPrices() {
return prices;
}

public void addNewSalesPrices(List<BigDecimal> prices) {
this.prices = prices;
}
}

0 comments on commit 99586f2

Please sign in to comment.