File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
msgpack-core/src/main/java/org/msgpack/value/impl Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ public ValueType getValueType()
4949 return ValueType .BOOLEAN ;
5050 }
5151
52+ @ Override
53+ public ImmutableBooleanValue asBooleanValue ()
54+ {
55+ return this ;
56+ }
57+
5258 @ Override
5359 public ImmutableBooleanValue immutableValue ()
5460 {
Original file line number Diff line number Diff line change 1616package org .msgpack .value .impl ;
1717
1818import org .msgpack .core .MessagePacker ;
19+ import org .msgpack .value .ImmutableNumberValue ;
1920import org .msgpack .value .ImmutableFloatValue ;
2021import org .msgpack .value .Value ;
2122import org .msgpack .value .ValueType ;
@@ -52,6 +53,18 @@ public ImmutableDoubleValueImpl immutableValue()
5253 return this ;
5354 }
5455
56+ @ Override
57+ public ImmutableNumberValue asNumberValue ()
58+ {
59+ return this ;
60+ }
61+
62+ @ Override
63+ public ImmutableFloatValue asFloatValue ()
64+ {
65+ return this ;
66+ }
67+
5568 @ Override
5669 public byte toByte ()
5770 {
You can’t perform that action at this time.
0 commit comments