Package org.stellar.sdk.xdr
Class Hash
java.lang.Object
org.stellar.sdk.xdr.Hash
- All Implemented Interfaces:
XdrElement
Hash's original definition in the XDR file is:
typedef opaque Hash[32];
-
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Hashdecode(XdrDataInputStream stream) static Hashdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) booleanstatic Hashstatic HashfromXdrBase64(String xdr) static HashfromXdrByteArray(byte[] xdr) byte[]getHash()inthashCode()voidsetHash(byte[] Hash) toJson()toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
Hash
public Hash() -
Hash
public Hash(byte[] Hash)
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
- Specified by:
toJsonin interfaceXdrElement
-
fromJson
-
getHash
public byte[] getHash() -
setHash
public void setHash(byte[] Hash) -
equals
-
hashCode
public int hashCode() -
toString
-