public final class AbiTypes
extends java.lang.Object
Short
for int8
, int16
and uint8
;
Integer
for int24
, int32
, uint16
and
uint24
, etc.Modifier and Type | Method and Description |
---|---|
static java.lang.Class<? extends Type> |
getType(java.lang.String type)
Returns the web3j data type for the given type, without using primitive types.
|
static java.lang.Class<? extends Type> |
getType(java.lang.String type,
boolean primitives)
Returns the web3j data type for the given type.
|
static java.lang.String |
getTypeAString(java.lang.Class<? extends Type> type)
Returns the provided class type as a string.
|
public static java.lang.Class<? extends Type> getType(java.lang.String type)
type
- A Solidity type.public static java.lang.Class<? extends Type> getType(java.lang.String type, boolean primitives)
type
- A Solidity type.primitives
- Use Java primitive types to wrap contract parameters.public static java.lang.String getTypeAString(java.lang.Class<? extends Type> type)
instance.getTypeAsString()
method.