Package org.polkadot.types.type
Class KeyValue
- 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.type.KeyValue
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,Codec>,Codec
public class KeyValue extends Struct
KeyValue structure. Since most of the keys and resultant values in Subtrate is hashed and/or encoded, this does not wrapText, but rather aBytesfor the keys and values. (Not to be confused with the KeyValue in Metadata, that is actually for Maps, whereas this is a representation of actaul storage values)- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyValue.KeyValueOptionA key/value change.
-
Constructor Summary
Constructors Constructor Description KeyValue(java.lang.Object value)
-
Method Summary
-
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
-
-