Guest User

Untitled

a guest
Jul 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public class StockQuote extends Quote implements ICodeQuote , Serializable{
  2.  
  3. public static ICodeQuote createFrom(IQuote quote) {
  4. StockQuote q = new StockQuote();
  5. q.setAbertura(quote.getAbertura());
  6. q.setCodigo(quote.getCodigo());
  7. q.setData(quote.getData());
  8. q.setMaximo(quote.getMaximo());
  9. q.setMedio(quote.getMedio());
  10. q.setMinimo(quote.getMinimo());
  11. q.setNome(quote.getNome());
  12. q.setOscilacao(quote.getOscilacao());
  13. q.setUltimo(quote.getUltimo());
  14. return q;
  15. }
  16. }
Add Comment
Please, Sign In to add comment