Class 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 a Tuple, indicating the use inside areas such as StorageChangeSet
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyValueOption​(java.lang.Object value)  
    • Method Summary

      Modifier and Type Method Description
      StorageKey getKey()
      The StorageKey
      Option<StorageData> getValue()
      The Option StorageData
      • 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
      • Methods inherited from class java.util.AbstractCollection

        containsAll
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.polkadot.types.Codec

        toU8a
      • Methods inherited from interface java.util.Collection

        parallelStream, stream, toArray
      • Methods inherited from interface java.util.List

        containsAll
    • Constructor Detail

      • KeyValueOption

        public KeyValueOption​(java.lang.Object value)