Package org.stellar.sdk.xdr
Class MuxedAccount.MuxedAccountMed25519
java.lang.Object
org.stellar.sdk.xdr.MuxedAccount.MuxedAccountMed25519
- All Implemented Interfaces:
XdrElement
- Enclosing class:
MuxedAccount
MuxedAccountMed25519's original definition in the XDR file is:
struct
{
uint64 id;
uint256 ed25519;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionMuxedAccountMed25519(Uint64 id, Uint256 ed25519) Creates a newMuxedAccountMed25519instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) Value of theed25519field.getId()Value of theidfield.inthashCode()voidsetEd25519(Uint256 ed25519) Value of theed25519field.voidValue of theidfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
MuxedAccountMed25519
public MuxedAccountMed25519() -
MuxedAccountMed25519
Creates a newMuxedAccountMed25519instance.- Parameters:
id- theidfield valueed25519- theed25519field value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static MuxedAccount.MuxedAccountMed25519 decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static MuxedAccount.MuxedAccountMed25519 decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getId
Value of theidfield.- Returns:
- the
idfield value
-
getEd25519
Value of theed25519field.- Returns:
- the
ed25519field value
-
setId
Value of theidfield.- Parameters:
id- theidfield value
-
setEd25519
Value of theed25519field.- Parameters:
ed25519- theed25519field value
-
equals
-
hashCode
public int hashCode() -
toString
-