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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Hashdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic HashfromXdrBase64(String xdr) static HashfromXdrByteArray(byte[] xdr) byte[]getHash()inthashCode()voidsetHash(byte[] Hash) toString()default Stringdefault 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
-