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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConstructorCodec, toU8a
public int getEncodedLength()
Text
The length of the value when encoded as a Uint8Array
getEncodedLength
in interface Codec
getEncodedLength
in class Text
public byte[] toU8a(boolean isBare)
Text
Encodes the value as a Uint8Array as per the parity-codec specifications