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