Skip to content

Commit 61cdffb

Browse files
committed
refactor: isAlwaysNumeric
1 parent 284ac40 commit 61cdffb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/kotlin/spp/protocol/instrument/meter/MetricValueType.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@ enum class MetricValueType {
2727
NUMBER_EXPRESSION,
2828
VALUE,
2929
VALUE_SUPPLIER,
30-
VALUE_EXPRESSION
30+
VALUE_EXPRESSION;
31+
32+
fun isAlwaysNumeric(): Boolean {
33+
return this == NUMBER || this == NUMBER_SUPPLIER || this == NUMBER_EXPRESSION
34+
}
3135
}

0 commit comments

Comments
 (0)