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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Memo.MemoBuilder
builder()
static Memo
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static Memo
fromXdrBase64
(String xdr) static Memo
fromXdrByteArray
(byte[] xdr) getHash()
getId()
getText()
int
hashCode()
void
setDiscriminant
(MemoType discriminant) void
void
void
setRetHash
(Hash retHash) void
toString()
default String
default 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
-