Skip to content

propper intendation on #28

Merged
merged 1 commit into from
Feb 23, 2026
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions src/main/java/edu/ntnu/idi/idatt2003/gruppe42/Model/Share.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,25 @@
import java.math.BigDecimal;

public class Share {
private Stock stock;
private BigDecimal quantity;
private BigDecimal purchasePrice;
private Stock stock;
private BigDecimal quantity;
private BigDecimal purchasePrice;

public void Share(Stock stock, BigDecimal quantity, BigDecimal purchasePrice) {
this.stock = stock;
this.quantity = quantity;
this.purchasePrice = purchasePrice;
}
public Stock getStock() { return stock; }
public BigDecimal getQuantity() { return quantity; }
public BigDecimal getPurchasePrice() { return purchasePrice; }
public void Share(Stock stock, BigDecimal quantity, BigDecimal purchasePrice) {
this.stock = stock;
this.quantity = quantity;
this.purchasePrice = purchasePrice;
}

public Stock getStock() {
return stock;
}

public BigDecimal getQuantity() {
return quantity;
}

public BigDecimal getPurchasePrice() {
return purchasePrice;
}
}