package org.marketcetera.messagehistory;
import org.marketcetera.core.ClassVersion;
import org.marketcetera.core.MemoizedHashCombinator;
import org.marketcetera.trade.Instrument;
/**
* SymbolSide implements a two component tuple for
* instrument, and (order) side. A conceptual
* example being "BUY IBM". This is useful when trying
* to group messages in a list based on a match of this
* tuple, for example when calculating average prices.
*
* @author gmiller
*
*/
@ClassVersion("$Id: SymbolSide.java 16154 2012-07-14 16:34:05Z colin $") //$NON-NLS-1$
public class SymbolSide extends MemoizedHashCombinator<Instrument, String> {
/**
* Create a new SymbolSide with the specified {@link Instrument} and
* string value for side.
*
* @param instrument the instrument
* @param side the side, one of the values from {@link quickfix.field.Side}
* @see quickfix.field.Side
*/
public SymbolSide(Instrument instrument, String side){
super(instrument, side);
}
}