Refactoring
This commit is contained in:
parent
a963ce1dea
commit
5e6df1f3c5
@ -1,4 +1,4 @@
|
||||
#Sat, 07 Oct 2017 09:35:06 +0200
|
||||
#Sun, 08 Oct 2017 19:22:43 +0200
|
||||
annotation.processing.enabled=true
|
||||
annotation.processing.enabled.in.editor=false
|
||||
annotation.processing.processors.list=
|
||||
|
@ -351,7 +351,7 @@ public class Exchange {
|
||||
|
||||
HashMap<OrderType, SortedSet<Order>> order_books;
|
||||
|
||||
IDGenerator order_id = new IDGenerator();
|
||||
IDGenerator order_id_generator = new IDGenerator();
|
||||
|
||||
public class Order {
|
||||
|
||||
@ -369,7 +369,7 @@ public class Exchange {
|
||||
double cost;
|
||||
|
||||
Order(Account account, OrderType type, double volume, double limit) {
|
||||
id = order_id.getNext();
|
||||
id = order_id_generator.getNext();
|
||||
this.account = account;
|
||||
this.type = type;
|
||||
this.limit = roundMoney(limit);
|
||||
|
Loading…
Reference in New Issue
Block a user