package com.paritytrading.parity.client;

import static com.paritytrading.parity.client.TerminalClient.*;

import com.paritytrading.foundation.ASCII;
import com.paritytrading.parity.util.Instrument;
import com.paritytrading.parity.util.Instruments;
import com.paritytrading.parity.util.Timestamps;

public class Trade {

    private long  timestamp;
    private Order order;
    private long  quantity;
    private long  price;

    public Trade(Order order, Event.OrderExecuted event) {
        this.timestamp = event.timestamp;
        this.order     = order;
        this.quantity  = event.quantity;
        this.price     = event.price;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public String format(Instruments instruments) {
        Instrument config = instruments.get(order.getInstrument());

        String priceFormat = config.getPriceFormat();
        String sizeFormat  = config.getSizeFormat();

        String format = "%12s %16s %c %8s " + sizeFormat + " " + priceFormat;

        return String.format(LOCALE, format,
                Timestamps.format(timestamp / NANOS_PER_MILLI), order.getOrderId(), order.getSide(),
                ASCII.unpackLong(order.getInstrument()), quantity / config.getSizeFactor(),
                price / config.getPriceFactor());
    }

}

@@ -322,24 +322,30 @@
     private 
+final 
 long  timest
@@ -361,16 +361,22 @@
 private 
+final 
 Order or
@@ -388,24 +388,30 @@
     private 
+final 
 long  quanti
@@ -426,16 +426,22 @@
 private 
+final 
 long  pr

Use 'final' modifier in 'Trade'