Created
February 8, 2011 10:41
-
-
Save edpichler/816250 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.edpichler.bovespa.persistent.impl; | |
import java.util.Date; | |
import com.edpichler.osgi.bovespa.quote.IQuote; | |
public abstract class Quote implements IQuote { | |
@Override | |
public String toString() { | |
return "Quote [nome=" + nome + ", codigo=" + codigo + ", data=" + data | |
+ ", ultimo=" + ultimo + ", oscilacao=" + oscilacao | |
+ ", medio=" + medio + ", maximo=" + maximo + ", minimo=" | |
+ minimo + ", abertura=" + abertura + "]"; | |
} | |
private String nome, codigo; | |
private Date data; | |
private double ultimo; | |
private double oscilacao; | |
private double medio; | |
private double maximo; | |
private double minimo; | |
private double abertura; | |
@Override | |
public String getNome() { | |
return nome; | |
} | |
@Override | |
public void setNome(String nome) { | |
this.nome = nome; | |
} | |
@Override | |
public String getCodigo() { | |
return this.codigo; | |
} | |
@Override | |
public void setCodigo(String codigo) { | |
if (codigo != null) { | |
this.codigo = codigo.trim().toUpperCase(); | |
} | |
} | |
@Override | |
public Date getData() { | |
return data; | |
} | |
@Override | |
public void setData(Date data) { | |
this.data = data; | |
} | |
@Override | |
public double getAbertura() { | |
return this.abertura; | |
} | |
@Override | |
public void setAbertura(double abertura) { | |
this.abertura = abertura; | |
} | |
@Override | |
public double getMinimo() { | |
return this.minimo; | |
} | |
@Override | |
public void setMinimo(double minimo) { | |
this.minimo = minimo; | |
} | |
@Override | |
public double getMaximo() { | |
return this.maximo; | |
} | |
@Override | |
public void setMaximo(double maximo) { | |
this.maximo = maximo; | |
} | |
@Override | |
public double getMedio() { | |
return this.medio; | |
} | |
@Override | |
public void setMedio(double medio) { | |
this.medio = medio; | |
} | |
@Override | |
public double getUltimo() { | |
return this.ultimo; | |
} | |
@Override | |
public void setUltimo(double ultimo) { | |
this.ultimo = ultimo; | |
} | |
@Override | |
public double getOscilacao() { | |
return this.oscilacao; | |
} | |
@Override | |
public void setOscilacao(double oscilacao) { | |
this.oscilacao = oscilacao; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment