@Test public void overrideToString() { assertEquals(trEquals1.toString(), trEquals2.toString()); assertNotEquals(trEquals1.toString(), trNotEquals1.toString()); assertNotEquals(trEquals1.toString(), trNotEquals2.toString()); }
@Override public String toString() { return "Entry: " + entry + " exit: " + exit; }
Trade implements Serializable { @Override public String toString() { return "Entry: " + entry + " exit: " + exit; } }
Trade implements Serializable { @Override public String toString() { return "Entry: " + entry + " exit: " + exit; } Trade();  Trade(OrderType startingType);  Trade(Order entry, Order exit); }
Trade implements Serializable { @Override public String toString() { return "Entry: " + entry + " exit: " + exit; } Trade();  Trade(OrderType startingType);  Trade(Order entry, Order exit); Order getEntry(); Order getExit(); @Override boolean equals(Object obj); @Override int hashCode(); Order operate(int index); Order operate(int index, Decimal price, Decimal amount); boolean isClosed(); boolean isOpened(); boolean isNew(); @Override String toString(); }
Trade implements Serializable { @Override public String toString() { return "Entry: " + entry + " exit: " + exit; } Trade();  Trade(OrderType startingType);  Trade(Order entry, Order exit); Order getEntry(); Order getExit(); @Override boolean equals(Object obj); @Override int hashCode(); Order operate(int index); Order operate(int index, Decimal price, Decimal amount); boolean isClosed(); boolean isOpened(); boolean isNew(); @Override String toString();  }