Skip to content

Commit b8f964e

Browse files
committed
✨ add longValue support
1 parent 71e02a9 commit b8f964e

File tree

1 file changed

+14
-0
lines changed
  • java/toolgood.algorithm/src/main/java/toolgood/algorithm

1 file changed

+14
-0
lines changed

java/toolgood.algorithm/src/main/java/toolgood/algorithm/Operand.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ public int IntValue() {
4141
return 0;
4242
}
4343

44+
public long LongValue() {
45+
return 0;
46+
}
47+
4448
public Object Value() {
4549
return null;
4650
}
@@ -427,6 +431,11 @@ public Object Value() {
427431
public int IntValue() {
428432
return Value.intValue();
429433
}
434+
435+
@Override
436+
public long LongValue() {
437+
return Value.longValue();
438+
}
430439
}
431440

432441
static class OperandLongNumber extends OperandT<Long> {
@@ -454,6 +463,11 @@ public double NumberValue() {
454463
public int IntValue() {
455464
return Value.intValue();
456465
}
466+
467+
@Override
468+
public long LongValue() {
469+
return Value;
470+
}
457471
}
458472

459473
static class OperandString extends OperandT<String> {

0 commit comments

Comments
 (0)