Class Header.HeaderExtended

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​Codec>, Codec
    Enclosing class:
    Header

    public static class Header.HeaderExtended
    extends Header
    A Block header with an additional `author` field that indicates the block author
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      Modifier and Type Method Description
      AccountId getAuthor()
      Convenience method, returns the author for the block
      java.lang.Object toJson()
      Creates the JSON representation
      • 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
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode
      • 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.Map

        compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Constructor Detail

      • HeaderExtended

        public HeaderExtended​(Header header,
                              java.util.List<AccountId> sessionValidators)
    • Method Detail

      • getAuthor

        public AccountId getAuthor()
        Convenience method, returns the author for the block
      • toJson

        public java.lang.Object toJson()
        Creates the JSON representation
        Specified by:
        toJson in interface Codec
        Overrides:
        toJson in class Struct