Back to project page CMOV_Stock_Portfolio.
The source code is released under:
MIT License
If you think the Android project CMOV_Stock_Portfolio listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package common; // w w w. j av a 2s . c o m import java.io.Serializable; import java.util.ArrayList; public class Stock implements Serializable { private static final long serialVersionUID = 1262807410200907660L; private String tick = "Tick"; private String fullName = "-"; private Integer owned = 0; private Double value = 0.0; private String lastCheck = "Date"; private Integer exchanges = 0; private ArrayList<Series> history = new ArrayList<Series> (); public Stock(String tick, String fullName, Integer owned) { this.tick = tick; this.fullName = fullName; this.owned = owned; } public Stock(String tick, Integer owned) { this.tick = tick; this.owned = owned; } public String getTick() { return tick; } public void setTick(String tick) { this.tick = tick; } public String getFullName() { return fullName; } public void setFullName(String fullName) { this.fullName = fullName; } public String getLastCheck() { return lastCheck; } public void setLastCheck(String lastCheck) { this.lastCheck = lastCheck; } public Integer getOwned() { return owned; } public void setOwned(Integer owned) { this.owned = owned; } public Double getValue() { return value; } public void setValue(Double value) { this.value = value; } public Double getTotalValue() { return value * owned; } public Integer getExchanges() { return exchanges; } public void setExchanges(Integer exchanges) { this.exchanges = exchanges; } @Override public String toString() { return tick; } public ArrayList<Series> getHistory() { return history; } public void setHistory(ArrayList<Series> history) { this.history = history; } }