school/java/old/week9/VideoAssignment/StockEntry.java

69 lines
1.3 KiB
Java
Raw Normal View History

2021-03-27 15:33:25 -04:00
public class StockEntry {
private String date;
private double open;
private double high;
private double low;
private double close;
public StockEntry(String date, double open,
double high, double low,
double close) {
this.date = date;
this.open = open;
this.high = high;
this.low = low;
this.close = close;
}
@Override
public String toString() {
return "StockEntry{" +
"date='" + date + '\'' +
", open=" + open +
", high=" + high +
", low=" + low +
", close=" + close +
'}';
}
public String getDate() {
return date;
}
public void setDate(String date) {
this.date = date;
}
public double getOpen() {
return open;
}
public void setOpen(double open) {
this.open = open;
}
public double getHigh() {
return high;
}
public void setHigh(double high) {
this.high = high;
}
public double getLow() {
return low;
}
public void setLow(double low) {
this.low = low;
}
public double getClose() {
return close;
}
public void setClose(double close) {
this.close = close;
}
}