Package org.polkadot.types.metadata.v2
Class Storage.MetadataStorageType
- java.lang.Object
-
- org.polkadot.types.codec.Base<Codec>
-
- org.polkadot.types.codec.EnumType
-
- org.polkadot.types.metadata.v2.Storage.MetadataStorageType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.polkadot.types.codec.EnumType
EnumType.EnumConstructor<T extends Codec>
-
-
Constructor Summary
Constructors Constructor Description MetadataStorageType(java.lang.Object value)MetadataStorageType(java.lang.Object value, int index)
-
Method Summary
Modifier and Type Method Description Storage.MapTypeasMap()The value as a mapped valueStorage.PlainTypeasType()The value as aorg.polkadot.types.typevaluebooleanisMap()`true` if the storage entry is a mapjava.lang.StringtoString()Returns the string representation of the value-
Methods inherited from class org.polkadot.types.codec.EnumType
eq, getEncodedLength, getType, index, isEmpty, isNone, isNull, isType, toHex, toJson, toNumber, toU8a, value, with
-
-
-
-
Method Detail
-
isMap
public boolean isMap()
`true` if the storage entry is a map
-
asMap
public Storage.MapType asMap()
The value as a mapped value
-
asType
public Storage.PlainType asType()
The value as aorg.polkadot.types.typevalue
-
-