Package org.stellar.sdk.xdr
Class Memo
java.lang.Object
org.stellar.sdk.xdr.Memo
Memo's original definition in the XDR file is:
union Memo switch (MemoType type)
{
case MEMO_NONE:
void;
case MEMO_TEXT:
string text<28>;
case MEMO_ID:
uint64 id;
case MEMO_HASH:
Hash hash; // the hash of what to pull from the content server
case MEMO_RETURN:
Hash retHash; // the hash of the tx you are rejecting
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Memo.MemoBuilderbuilder()static Memodecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic MemofromXdrBase64(String xdr) static MemofromXdrByteArray(byte[] xdr) getHash()getId()getText()inthashCode()voidsetDiscriminant(MemoType discriminant) voidvoidvoidsetRetHash(Hash retHash) voidtoString()default Stringdefault byte[]
-
Constructor Details
-
Memo
public Memo() -
Memo
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getText
-
getId
-
getHash
-
getRetHash
-
setDiscriminant
-
setText
-
setId
-
setHash
-
setRetHash
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-