@Override public TradeRow apply(Trade input) { TradeRow tradeRow = new TradeRow(); tradeRow.setBuyingBroker(input.getBuyBroker()); tradeRow.setPrice(input.getPrice()); tradeRow.setQuantity(input.getQuantity()); tradeRow.setSellingBroker(input.getSellBroker()); return tradeRow; }