Constructor to enforce an id
This commit is contained in:
parent
1336a7dbc5
commit
341a888d6f
@ -40,6 +40,12 @@ public class Quote implements Comparable {
|
|||||||
public double volume;
|
public double volume;
|
||||||
public long time;
|
public long time;
|
||||||
|
|
||||||
|
public long id;
|
||||||
|
|
||||||
|
Quote (long id){
|
||||||
|
this.id=id;
|
||||||
|
}
|
||||||
|
|
||||||
// Locker lock = new Locker();
|
// Locker lock = new Locker();
|
||||||
|
|
||||||
public void print() {
|
public void print() {
|
||||||
@ -54,7 +60,7 @@ public class Quote implements Comparable {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public long id;
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(Object o) {
|
public int compareTo(Object o) {
|
||||||
|
Loading…
Reference in New Issue
Block a user