|
@@ -42,6 +42,7 @@ public class IRCDataInEvent extends DataInEvent {
|
42
|
42
|
private final String[] tokenisedData;
|
43
|
43
|
private final String action;
|
44
|
44
|
private final int numeric;
|
|
45
|
+ private final boolean isNumeric;
|
45
|
46
|
|
46
|
47
|
public IRCDataInEvent(final IRCParser parser, final LocalDateTime date, final ReadLine line) {
|
47
|
48
|
super(parser, date, checkNotNull(line).getLine());
|
|
@@ -68,6 +69,7 @@ public class IRCDataInEvent extends DataInEvent {
|
68
|
69
|
int num = -1;
|
69
|
70
|
try { num = Integer.parseInt(action); } catch (final NumberFormatException e) { }
|
70
|
71
|
numeric = num;
|
|
72
|
+ isNumeric = (numeric != -1);
|
71
|
73
|
}
|
72
|
74
|
|
73
|
75
|
public String[] getTokenisedData() {
|
|
@@ -83,7 +85,7 @@ public class IRCDataInEvent extends DataInEvent {
|
83
|
85
|
}
|
84
|
86
|
|
85
|
87
|
public boolean isNumeric() {
|
86
|
|
- return numeric != -1;
|
|
88
|
+ return isNumeric;
|
87
|
89
|
}
|
88
|
90
|
|
89
|
91
|
public int getNumeric() {
|