public class Type extends Text
This is a extended version of String, specifically to handle types. Here we rely fully on what string provides us, however we also adjust the types received from the runtime, i.e. we remove the T:: prefixes found in some types for consistency accross implementation.
| Constructor and Description |
|---|
Type(java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEncodedLength()
The length of the value when encoded as a Uint8Array
|
byte[] |
toU8a(boolean isBare)
Encodes the value as a Uint8Array as per the parity-codec specifications
|
charAt, eq, isEmpty, length, subSequence, toHex, toJson, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConstructorCodec, toU8apublic int getEncodedLength()
TextThe length of the value when encoded as a Uint8Array
getEncodedLength in interface CodecgetEncodedLength in class Textpublic byte[] toU8a(boolean isBare)
TextEncodes the value as a Uint8Array as per the parity-codec specifications