Package org.polkadot.types.metadata.v0
Class MetadataV0
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,Codec>
-
- org.polkadot.types.codec.Struct
-
- org.polkadot.types.metadata.v0.MetadataV0
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,Codec>,Codec,Types.MetadataInterface
public class MetadataV0 extends Struct implements Types.MetadataInterface
The runtime metadata as a decoded structure- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MetadataV0(java.lang.Object value)
-
Method Summary
Modifier and Type Method Description Vector<Calls.OuterDispatchCall>getCalls()Wrapped OuterDispatchCallVector<Events.OuterEventMetadataEvent>getEvents()Wrapped OuterEventMetadataEventVector<Modules.RuntimeModuleMetadata>getModules()Wrapped RuntimeModuleMetadatajava.util.List<java.lang.String>getUniqTypes(boolean throwError)Helper to retrieve a list of all type that are found, sorted and de-deuplicated-
Methods inherited from class org.polkadot.types.codec.Struct
builder, eq, getEncodedLength, getField, isEmpty, toArray, toHex, toJson, toString, toU8a, with
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
getCalls
public Vector<Calls.OuterDispatchCall> getCalls()
Wrapped OuterDispatchCall
-
getEvents
public Vector<Events.OuterEventMetadataEvent> getEvents()
Wrapped OuterEventMetadataEvent
-
getModules
public Vector<Modules.RuntimeModuleMetadata> getModules()
Wrapped RuntimeModuleMetadata
-
getUniqTypes
public java.util.List<java.lang.String> getUniqTypes(boolean throwError)
Helper to retrieve a list of all type that are found, sorted and de-deuplicated- Specified by:
getUniqTypesin interfaceTypes.MetadataInterface
-
-