@ApiAudience.Public @ApiStability.Unstable public class TxHash extends Hash implements Adaptor, Encodable
bytesValue
Constructor and Description |
---|
TxHash(BytesValue bytesValue) |
TxHash(java.lang.String encoded)
TxHash constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
adapt(java.lang.Class<T> adaptor)
Convert to other resource.
|
static TxHash |
of(BytesValue bytesValue) |
static TxHash |
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 TxHash(java.lang.String encoded)
encoded
- Base58 encoded valueDecodingFailureException
- if decoding failed@ApiAudience.Private public TxHash(BytesValue bytesValue)
@ApiAudience.Public public static TxHash of(java.lang.String encoded)
Hash
with a base58 encoded value.encoded
- Base58 with checksum encodedTxHash
DecodingFailureException
- if decoding failedpublic static TxHash of(BytesValue bytesValue)
public <T> T adapt(java.lang.Class<T> adaptor)
Adaptor