Package org.stellar.sdk.xdr
Class Hash
java.lang.Object
org.stellar.sdk.xdr.Hash
Hash's original definition in the XDR file is:
typedef opaque Hash[32];
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Hash
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static Hash
fromXdrBase64
(String xdr) static Hash
fromXdrByteArray
(byte[] xdr) byte[]
getHash()
int
hashCode()
void
setHash
(byte[] Hash) toString()
default String
default byte[]
-
Constructor Details
-
Hash
public Hash() -
Hash
public Hash(byte[] Hash)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
getHash
public byte[] getHash() -
setHash
public void setHash(byte[] Hash) -
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-