| Modifier and Type | Field and Description |
|---|---|
static Address |
DEFAULT |
static int |
DEFAULT_LENGTH |
static java.lang.String |
TYPE_NAME |
MAX_BIT_LENGTH, MAX_BYTE_LENGTH| Constructor and Description |
|---|
Address(java.math.BigInteger value) |
Address(int bitSize,
java.math.BigInteger value) |
Address(int bitSize,
java.lang.String hexValue) |
Address(java.lang.String value) |
Address(Uint value)
Deprecated.
use
Address(BigInteger) or Address(String),
which normalize to 160 bits. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getTypeAsString() |
java.lang.String |
getValue() |
int |
hashCode() |
java.lang.String |
toString() |
Uint |
toUint() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitbytes32PaddedLengthpublic static final java.lang.String TYPE_NAME
public static final int DEFAULT_LENGTH
public static final Address DEFAULT
@Deprecated public Address(Uint value)
Address(BigInteger) or Address(String),
which normalize to 160 bits.Uint as-is, without normalizing its bit size to 160.
TypeEncoder.encodePacked(org.tron.trident.abi.datatypes.Type) slices by the stored bit
size, so a 256-bit Uint packs to 32 bytes instead of the canonical 20.public Address(java.math.BigInteger value)
public Address(int bitSize,
java.math.BigInteger value)
public Address(java.lang.String value)
public Address(int bitSize,
java.lang.String hexValue)
public Uint toUint()
public java.lang.String getTypeAsString()
getTypeAsString in interface Type<java.lang.String>public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getValue()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object