public abstract class StaticArray<T extends Type> extends Array<T>
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SIZE_OF_STATIC_ARRAY
Warning: increasing this constant will cause more generated StaticArrayN types, see:
org.tron.trident.codegen.AbiTypesGenerator#generateStaticArrayTypes
|
MAX_BIT_LENGTH, MAX_BYTE_LENGTH| Constructor and Description |
|---|
StaticArray(java.lang.Class<T> type,
int expectedSize,
java.util.List<T> values) |
StaticArray(java.lang.Class<T> type,
int expectedSize,
T... values) |
StaticArray(java.lang.Class<T> type,
java.util.List<T> values) |
StaticArray(java.lang.Class<T> type,
T... values) |
StaticArray(int expectedSize,
java.util.List<T> values)
Deprecated.
Infers the element type from
values.get(0), so passing an empty list
throws IndexOutOfBoundsException. Notably this makes the deprecated
constructors of StaticArray0 unusable. Use
StaticArray(Class<T>, int, List<T>) instead. |
StaticArray(int expectedSize,
T... values)
Deprecated.
|
StaticArray(java.util.List<T> values)
Deprecated.
|
StaticArray(T... values)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getTypeAsString() |
java.util.List<T> |
getValue() |
bytes32PaddedLength, equals, getComponentType, hashCodepublic static final int MAX_SIZE_OF_STATIC_ARRAY
@Deprecated @SafeVarargs public StaticArray(T... values)
@Deprecated
@SafeVarargs
public StaticArray(int expectedSize,
T... values)
@Deprecated public StaticArray(java.util.List<T> values)
@Deprecated
public StaticArray(int expectedSize,
java.util.List<T> values)
values.get(0), so passing an empty list
throws IndexOutOfBoundsException. Notably this makes the deprecated
constructors of StaticArray0 unusable. Use
StaticArray(Class<T>, int, List<T>) instead.public java.util.List<T> getValue()
public java.lang.String getTypeAsString()
getTypeAsString in interface Type<java.util.List<T extends Type>>getTypeAsString in class Array<T extends Type>