-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathQuote.java
49 lines (38 loc) · 938 Bytes
/
Quote.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package main.java.com.g4.fauxexchange.model;
import java.util.LinkedList;
import com.g4.fauxexchange.model.Price;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
public class Quote {
public enum Type {
Yield, Price, Future, Spread, Average
}
protected Type type;
protected double value;
protected long date;
public Quote(Type type, double price) {
this.type = type;
this.value = price;
}
public long getDate() {
return date;
}
public void setDate(long date) {
this.date = date;
}
public void setValue(double value) {
this.value = value;
}
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
public double getValue() {
return value;
}
public void setValue(float value) {
this.value = value;
}
}