com.algoTrader.entity.trade.OrderImpl.java Source code

Java tutorial

Introduction

Here is the source code for com.algoTrader.entity.trade.OrderImpl.java

Source

/*******************************************************************************
 * Copyright (c) 2013 Andy Flury.
 * http://code.google.com/p/algo-trader
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the GNU Public License v2.0
 * which accompanies this distribution, and is available at
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 ******************************************************************************/
package com.algoTrader.entity.trade;

import org.apache.commons.lang.ClassUtils;

public abstract class OrderImpl extends Order {

    private static final long serialVersionUID = -6501807818853981164L;

    public String toString() {

        return getSide() + " " + getQuantity() + " " + ClassUtils.getShortClassName(this.getClass()) + " "
                + getSecurity().getSymbol();
    }
}