Java Reference
In-Depth Information
public class Stock {
private String symbol, name;
private double last, open, high, low;
private long volume;
private Date timestamp;
private double marketCap;
private double previousClose;
private double change, percentageChange;
private double annRangeLow, annRangeHigh;
private double earns;
private double pe;
public Stock(String symbol, String name, double last, double open, double high,
double low, long volume, Date timestamp, double marketCap,
double previousClose, double change, double percentageChange,
double annRangeLow, double annRangeHigh, double earns, double pe) {
this.symbol = symbol;
this.name = name;
this.last = last;
this.open = open;
this.high = high;
this.low = low;
this.volume = volume;
this.timestamp = timestamp;
this.marketCap = marketCap;
this.previousClose = previousClose;
this.change = change;
this.percentageChange = percentageChange;
this.annRangeLow = annRangeLow;
this.annRangeHigh = annRangeHigh;
this.earns = earns;
this.pe = pe;
}
public String getSymbol() {
return symbol;
}
public String getName() {
return name;
}
public double getLast() {
return last;
}
public double getChange() {
return change;
}
public double getOpen() {
return open;
}
public double getHigh() {
return high;
}
Search WWH ::




Custom Search