Class Vector<T extends Codec>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess, Codec
    Direct Known Subclasses:
    Digest.AuthoritiesChange, Extrinsics, ExtrinsicStatus.Broadcast

    public class Vector<T extends Codec>
    extends AbstractArray<T>
    Vector This manages codec arrays. Internally it keeps track of the length (as decoded) and allows construction with the passed `Type` in the constructor. It is an extension to Array, providing specific encoding/decoding on top of the base type.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getType()
      The type for the items
      int indexOf​(java.lang.Object o)  
      static <O extends Codec>
      Types.ConstructorCodec<Vector<O>>
      with​(Types.ConstructorCodec<O> type)  
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, 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, toString
      • 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
    • Method Detail

      • getType

        public java.lang.String getType()
        The type for the items
      • indexOf

        public int indexOf​(java.lang.Object o)
        Specified by:
        indexOf in interface java.util.List<T extends Codec>
        Overrides:
        indexOf in class java.util.ArrayList<T extends Codec>