Skip to content

Instantly share code, notes, and snippets.

@edpichler
Created February 8, 2011 10:41
Show Gist options
  • Save edpichler/816252 to your computer and use it in GitHub Desktop.
Save edpichler/816252 to your computer and use it in GitHub Desktop.
public class StockQuote extends Quote implements ICodeQuote , Serializable{
public static ICodeQuote createFrom(IQuote quote) {
StockQuote q = new StockQuote();
q.setAbertura(quote.getAbertura());
q.setCodigo(quote.getCodigo());
q.setData(quote.getData());
q.setMaximo(quote.getMaximo());
q.setMedio(quote.getMedio());
q.setMinimo(quote.getMinimo());
q.setNome(quote.getNome());
q.setOscilacao(quote.getOscilacao());
q.setUltimo(quote.getUltimo());
return q;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment