@Test public void overrideToString() { assertEquals(opEquals1.toString(), opEquals2.toString()); assertNotEquals(opEquals1.toString(), opNotEquals1.toString()); assertNotEquals(opEquals1.toString(), opNotEquals2.toString()); }
@Override public String toString() { return "Order{" + "type=" + type + ", index=" + index + ", price=" + pricePerAsset + ", amount=" + amount + '}'; }
Order implements Serializable { @Override public String toString() { return "Order{" + "type=" + type + ", index=" + index + ", price=" + pricePerAsset + ", amount=" + amount + '}'; } }
Order implements Serializable { @Override public String toString() { return "Order{" + "type=" + type + ", index=" + index + ", price=" + pricePerAsset + ", amount=" + amount + '}'; } protected  Order(int index, BarSeries series, OrderType type); protected  Order(int index, BarSeries series, OrderType type, Num amount); protected  Order(int index, BarSeries series, OrderType type, Num amount, CostModel transactionCostModel); protected  Order(int index, OrderType type, Num pricePerAsset); protected  Order(int index, OrderType type, Num pricePerAsset, Num amount); protected  Order(int index, OrderType type, Num pricePerAsset, Num amount, CostModel transactionCostModel); }
Order implements Serializable { @Override public String toString() { return "Order{" + "type=" + type + ", index=" + index + ", price=" + pricePerAsset + ", amount=" + amount + '}'; } protected  Order(int index, BarSeries series, OrderType type); protected  Order(int index, BarSeries series, OrderType type, Num amount); protected  Order(int index, BarSeries series, OrderType type, Num amount, CostModel transactionCostModel); protected  Order(int index, OrderType type, Num pricePerAsset); protected  Order(int index, OrderType type, Num pricePerAsset, Num amount); protected  Order(int index, OrderType type, Num pricePerAsset, Num amount, CostModel transactionCostModel); OrderType getType(); Num getCost(); int getIndex(); Num getPricePerAsset(); Num getNetPrice(); Num getAmount(); CostModel getCostModel(); boolean isBuy(); boolean isSell(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static Order buyAt(int index, BarSeries series); static Order buyAt(int index, Num price, Num amount, CostModel transactionCostModel); static Order buyAt(int index, Num price, Num amount); static Order buyAt(int index, BarSeries series, Num amount); static Order buyAt(int index, BarSeries series, Num amount, CostModel transactionCostModel); static Order sellAt(int index, BarSeries series); static Order sellAt(int index, Num price, Num amount); static Order sellAt(int index, Num price, Num amount, CostModel transactionCostModel); static Order sellAt(int index, BarSeries series, Num amount); static Order sellAt(int index, BarSeries series, Num amount, CostModel transactionCostModel); Num getValue(); }
Order implements Serializable { @Override public String toString() { return "Order{" + "type=" + type + ", index=" + index + ", price=" + pricePerAsset + ", amount=" + amount + '}'; } protected  Order(int index, BarSeries series, OrderType type); protected  Order(int index, BarSeries series, OrderType type, Num amount); protected  Order(int index, BarSeries series, OrderType type, Num amount, CostModel transactionCostModel); protected  Order(int index, OrderType type, Num pricePerAsset); protected  Order(int index, OrderType type, Num pricePerAsset, Num amount); protected  Order(int index, OrderType type, Num pricePerAsset, Num amount, CostModel transactionCostModel); OrderType getType(); Num getCost(); int getIndex(); Num getPricePerAsset(); Num getNetPrice(); Num getAmount(); CostModel getCostModel(); boolean isBuy(); boolean isSell(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static Order buyAt(int index, BarSeries series); static Order buyAt(int index, Num price, Num amount, CostModel transactionCostModel); static Order buyAt(int index, Num price, Num amount); static Order buyAt(int index, BarSeries series, Num amount); static Order buyAt(int index, BarSeries series, Num amount, CostModel transactionCostModel); static Order sellAt(int index, BarSeries series); static Order sellAt(int index, Num price, Num amount); static Order sellAt(int index, Num price, Num amount, CostModel transactionCostModel); static Order sellAt(int index, BarSeries series, Num amount); static Order sellAt(int index, BarSeries series, Num amount, CostModel transactionCostModel); Num getValue();  }