@ApiAudience.Public @ApiStability.Unstable public class ContractTxHash extends TxHash implements Adaptor, Encodable
bytesValue
Constructor and Description |
---|
ContractTxHash(BytesValue bytesValue)
ContractTxHash constructor.
|
ContractTxHash(java.lang.String encoded)
ContractTxHash constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
adapt(java.lang.Class<T> adaptor)
Convert to other resource.
|
static ContractTxHash |
of(BytesValue bytesValue)
Create
Hash . |
static ContractTxHash |
of(java.lang.String encoded)
Create
Hash with a base58 encoded value. |
equals, getEncoded, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getEncoded
@ApiAudience.Public public ContractTxHash(java.lang.String encoded)
encoded
- String with base58 encodedDecodingFailureException
- if decoding failed@ApiAudience.Private public ContractTxHash(BytesValue bytesValue)
bytesValue
- BytesValue
@ApiAudience.Public public static ContractTxHash of(java.lang.String encoded)
Hash
with a base58 encoded value.encoded
- String with base58 encodedContractTxHash
DecodingFailureException
- if decoding failed@ApiAudience.Private public static ContractTxHash of(BytesValue bytesValue)
Hash
.bytesValue
- BytesValue
ContractTxHash
public <T> T adapt(java.lang.Class<T> adaptor)
Adaptor