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=true
|
||||||
annotation.processing.enabled.in.editor=false
|
annotation.processing.enabled.in.editor=false
|
||||||
annotation.processing.processors.list=
|
annotation.processing.processors.list=
|
||||||
|
@ -351,7 +351,7 @@ public class Exchange {
|
|||||||
|
|
||||||
HashMap<OrderType, SortedSet<Order>> order_books;
|
HashMap<OrderType, SortedSet<Order>> order_books;
|
||||||
|
|
||||||
IDGenerator order_id = new IDGenerator();
|
IDGenerator order_id_generator = new IDGenerator();
|
||||||
|
|
||||||
public class Order {
|
public class Order {
|
||||||
|
|
||||||
@ -369,7 +369,7 @@ public class Exchange {
|
|||||||
double cost;
|
double cost;
|
||||||
|
|
||||||
Order(Account account, OrderType type, double volume, double limit) {
|
Order(Account account, OrderType type, double volume, double limit) {
|
||||||
id = order_id.getNext();
|
id = order_id_generator.getNext();
|
||||||
this.account = account;
|
this.account = account;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.limit = roundMoney(limit);
|
this.limit = roundMoney(limit);
|
||||||
|
Loading…
Reference in New Issue
Block a user