21
21
*/
22
22
public enum FixField {
23
23
Int (DataType .Int ),
24
- Length (DataType .Int ),
25
- TagNum (DataType .Int ),
26
- SeqNum (DataType .Int ),
27
- NumInGroup (DataType .Int ),
24
+ Length (DataType .Long ),
25
+ TagNum (DataType .Long ),
26
+ SeqNum (DataType .Long ),
27
+ NumInGroup (DataType .Long ),
28
28
DayOfMonth (DataType .Int ),
29
29
30
30
Float (DataType .Float ),
31
- Qty (DataType .Float ),
32
- Price (DataType .Float ),
33
- PriceOffset (DataType .Float ),
34
- Amt (DataType .Float ),
35
- Percentage (DataType .Float ),
31
+ Qty (DataType .Double ),
32
+ Price (DataType .Double ),
33
+ PriceOffset (DataType .Double ),
34
+ Amt (DataType .Double ),
35
+ Percentage (DataType .Double ),
36
36
37
37
Char (DataType .Char ),
38
- Boolean (DataType .Char ),
38
+ Boolean (DataType .Boolean ),
39
39
40
40
String (DataType .String ),
41
41
MultipleCharValue (DataType .String ),
@@ -68,10 +68,18 @@ private FixField(DataType dataType) {
68
68
public final boolean isInt () {
69
69
return dataType == DataType .Int ;
70
70
}
71
+
72
+ public final boolean isLong () {
73
+ return dataType == DataType .Long ;
74
+ }
71
75
72
76
public final boolean isFloat () {
73
77
return dataType == DataType .Float ;
74
78
}
79
+
80
+ public final boolean isDouble () {
81
+ return dataType == DataType .Double ;
82
+ }
75
83
76
84
public final boolean isChar () {
77
85
return dataType == DataType .Char ;
@@ -80,8 +88,12 @@ public final boolean isChar() {
80
88
public final boolean isString () {
81
89
return dataType == DataType .String ;
82
90
}
91
+
92
+ public final boolean isBoolean () {
93
+ return dataType == DataType .Boolean ;
94
+ }
83
95
84
96
public final boolean isPattern () {
85
97
return dataType == DataType .Pattern ;
86
98
}
87
- }
99
+ }
0 commit comments