Android Open Source - CMOV_Stock_Portfolio Stock






From Project

Back to project page CMOV_Stock_Portfolio.

License

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.

Java Source Code

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;
  }

}




Java Source Code List

cmov.stock_portfolio.MainActivity.java
cmov.stock_portfolio.Portfolio.java
cmov.stock_portfolio.TickEditActivity.java
cmov.stock_portfolio.TotalPortfolio.java
common.Common.java
common.Network.java
common.Series.java
common.Stock.java
opengl.LineChart.java
opengl.LineGraph.java
opengl.PieChart.java
opengl.PieGraph.java
opengl.text.GLText.java
opengl.text.SpriteBatch.java
opengl.text.TextureRegion.java
opengl.text.Vertices.java