yatsdev/AllGoTrading — pull request #30 by NeoSephiroth (2014-05-14 09:13:36+00:00)
Title: Update OrderNew.java

TESTED this way, :

package org.yats.trading;

import org.joda.time.DateTime;
import org.yats.common.Decimal;

/**
* Created by emiliano on 14/05/2014.
*/
public class testEmiliano {

public static void main (String args[])
{
OrderNew a = OrderNew.create().withBookSide(BookSide.BID).withExternalAccount("1005390").withInternalAccount("1005390").withSize(Decimal.ONE).withLimit(Decimal.ZERO).withProductId("4663789").withTimestamp(DateTime.now());
OrderNew b = OrderNew.create().withBookSide(BookSide.BID).withExternalAccount("1005390").withInternalAccount("1005390").withSize(Decimal.ONE).withLimit(Decimal.ZERO).withProductId("4663789").withTimestamp(DateTime.now());

System.out.println(a.isSameAs(b));

}

}

Returns true, if I change something returns false. It should be OK!