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.
| Constructor and Description |
|---|
Vector(Types.ConstructorCodec<T> type,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getType()
The type for the items
|
int |
indexOf(java.lang.Object o) |
static <O extends Codec> |
with(Types.ConstructorCodec<O> type) |
eq, getEncodedLength, getFiled, isEmpty, length, toHex, toJson, toU8aadd, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizefinalize, getClass, notify, notifyAll, wait, wait, waitgetConstructorCodec, toU8apublic Vector(Types.ConstructorCodec<T> type, java.lang.Object value)
public static <O extends Codec> Types.ConstructorCodec<Vector<O>> with(Types.ConstructorCodec<O> type)
public java.lang.String getType()
The type for the items