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 a Tuple
, indicating the use inside areas such as StorageChangeSet
Constructor and Description |
---|
KeyValueOption(java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
StorageKey |
getKey()
The StorageKey
|
Option<StorageData> |
getValue()
The Option StorageData
|
getEncodedLength, getTypes, toString, toU8a
eq, getFiled, isEmpty, length, toHex, toJson
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
getConstructorCodec, toU8a
public StorageKey getKey()
The StorageKey
public Option<StorageData> getValue()
The Option StorageData