Skip to content

Commit 080ac61

Browse files
committed
Update FixField.java
1 parent ff1cade commit 080ac61

File tree

1 file changed

+23
-11
lines changed
  • fix-sandbox/model/src/main/java/net/openhft/fix/model

1 file changed

+23
-11
lines changed

fix-sandbox/model/src/main/java/net/openhft/fix/model/FixField.java

+23-11
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@
2121
*/
2222
public enum FixField {
2323
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),
2828
DayOfMonth(DataType.Int),
2929

3030
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),
3636

3737
Char(DataType.Char),
38-
Boolean(DataType.Char),
38+
Boolean(DataType.Boolean),
3939

4040
String(DataType.String),
4141
MultipleCharValue(DataType.String),
@@ -68,10 +68,18 @@ private FixField(DataType dataType) {
6868
public final boolean isInt() {
6969
return dataType == DataType.Int;
7070
}
71+
72+
public final boolean isLong() {
73+
return dataType == DataType.Long;
74+
}
7175

7276
public final boolean isFloat() {
7377
return dataType == DataType.Float;
7478
}
79+
80+
public final boolean isDouble() {
81+
return dataType == DataType.Double;
82+
}
7583

7684
public final boolean isChar() {
7785
return dataType == DataType.Char;
@@ -80,8 +88,12 @@ public final boolean isChar() {
8088
public final boolean isString() {
8189
return dataType == DataType.String;
8290
}
91+
92+
public final boolean isBoolean() {
93+
return dataType == DataType.Boolean;
94+
}
8395

8496
public final boolean isPattern() {
8597
return dataType == DataType.Pattern;
8698
}
87-
}
99+
}

0 commit comments

Comments
 (0)