File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/com/morgner/cex/api Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class Trade implements Comparable<Trade> {
1818 private double price = 0.0 ;
1919
2020 @ Expose
21- private long timestamp = 0L ;
21+ private long date = 0L ;
2222
2323 public long getTid () {
2424 return tid ;
@@ -32,14 +32,14 @@ public double getPrice() {
3232 return price ;
3333 }
3434
35- public long getTimestamp () {
36- return timestamp ;
35+ public long getDate () {
36+ return date ;
3737 }
3838
3939 // ----- interface Comparable -----
4040 public int compareTo (Trade o ) {
4141
42- // default sort order is "price , descending"
43- return Double .valueOf (o .getPrice ()).compareTo (Double .valueOf (getPrice ()));
42+ // default sort order is "date , descending"
43+ return Long .valueOf (o .getDate ()).compareTo (Long .valueOf (getDate ()));
4444 }
4545}
You can’t perform that action at this time.
0 commit comments