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