You can check type first using isXxx() methods or #getValueType() method, then convert the value to a subtype using asXxx() methods. You can also call asXxx() methods directly and catch org.msgpack.core.MessageTypeCastException. MessagePack typeCheck methodConvert methodValue typeNil#isNilValu...
Value.asArrayValue()方法的具体详情如下: 包路径:org.msgpack.value.Value 类名称:Value 方法名:asArrayValue Value.asArrayValue介绍 [英]Returns the value as ArrayValue. Otherwise throws MessageTypeCastException. Note that you can't useinstanceofor cast((ArrayValue) thisValue)to check type of a val...
包路径:org.msgpack.value.Value类名称:Value方法名:asMapValue Value.asMapValue介绍 [英]Returns the value as MapValue. Otherwise throws MessageTypeCastException. Note that you can't use instanceof or cast ((MapValue) thisValue) to check type of a value because type of a mutable value is vari...