Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
- }
Add Comment
Please, Sign In to add comment