Skip to content

Commit 53be767

Browse files
committed
refactor: isExpression()
1 parent 8905354 commit 53be767

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ enum class MetricValueType {
3232
fun isAlwaysNumeric(): Boolean {
3333
return this == NUMBER || this == NUMBER_SUPPLIER || this == NUMBER_EXPRESSION
3434
}
35+
36+
fun isExpression(): Boolean {
37+
return this == NUMBER_EXPRESSION || this == VALUE_EXPRESSION
38+
}
3539
}

0 commit comments

Comments
 (0)