Created
February 8, 2011 10:41
-
-
Save edpichler/816252 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
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