Package org.stellar.sdk.xdr
Class MuxedEd25519Account
java.lang.Object
org.stellar.sdk.xdr.MuxedEd25519Account
- All Implemented Interfaces:
XdrElement
MuxedEd25519Account's original definition in the XDR file is:
struct MuxedEd25519Account
{
uint64 id;
uint256 ed25519;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionMuxedEd25519Account(Uint64 id, Uint256 ed25519) Creates a newMuxedEd25519Accountinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static MuxedEd25519Accountdecode(XdrDataInputStream stream) static MuxedEd25519Accountdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic MuxedEd25519Accountstatic MuxedEd25519AccountfromXdrBase64(String xdr) static MuxedEd25519AccountfromXdrByteArray(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
-
MuxedEd25519Account
public MuxedEd25519Account() -
MuxedEd25519Account
Creates a newMuxedEd25519Accountinstance.- 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 MuxedEd25519Account decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- 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
-