Constructor to enforce an id

This commit is contained in:
7u83 2018-12-29 01:37:38 +01:00
parent 1336a7dbc5
commit 341a888d6f
1 changed files with 7 additions and 1 deletions

View File

@ -40,6 +40,12 @@ public class Quote implements Comparable {
public double volume;
public long time;
public long id;
Quote (long id){
this.id=id;
}
// Locker lock = new Locker();
public void print() {
@ -54,7 +60,7 @@ public class Quote implements Comparable {
}
public long id;
@Override
public int compareTo(Object o) {