Package org.polkadot.types.type
Class KeyValue.KeyValueOption
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<T>
-
- org.polkadot.types.codec.AbstractArray<Codec>
-
- org.polkadot.types.codec.Tuple
-
- org.polkadot.types.type.KeyValue.KeyValueOption
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<Codec>,java.util.Collection<Codec>,java.util.List<Codec>,java.util.RandomAccess,Codec
- Enclosing class:
- KeyValue
public static class KeyValue.KeyValueOption extends Tuple
A key/value change. This is similar to the KeyValue structure, however in this case the value could be optional. Here it extends from aTuple, indicating the use inside areas such as StorageChangeSet- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyValueOption(java.lang.Object value)
-
Method Summary
Modifier and Type Method Description StorageKeygetKey()The StorageKeyOption<StorageData>getValue()The Option StorageData-
Methods inherited from class org.polkadot.types.codec.Tuple
getEncodedLength, getTypes, toString, toU8a
-
Methods inherited from class org.polkadot.types.codec.AbstractArray
eq, getFiled, isEmpty, length, toHex, toJson
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
getKey
public StorageKey getKey()
The StorageKey
-
getValue
public Option<StorageData> getValue()
The Option StorageData
-
-