Package org.stellar.sdk.xdr
Class LedgerKey.LedgerKeyAccount
java.lang.Object
org.stellar.sdk.xdr.LedgerKey.LedgerKeyAccount
- All Implemented Interfaces:
XdrElement
- Enclosing class:
LedgerKey
LedgerKeyAccount's original definition in the XDR file is:
struct
{
AccountID accountID;
}
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionLedgerKeyAccount(AccountID accountID) Creates a newLedgerKeyAccountinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerKey.LedgerKeyAccountdecode(XdrDataInputStream stream) static LedgerKey.LedgerKeyAccountdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic LedgerKey.LedgerKeyAccountstatic LedgerKey.LedgerKeyAccountfromXdrBase64(String xdr) static LedgerKey.LedgerKeyAccountfromXdrByteArray(byte[] xdr) Value of theaccountIDfield.inthashCode()voidsetAccountID(AccountID accountID) Value of theaccountIDfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
LedgerKeyAccount
public LedgerKeyAccount() -
LedgerKeyAccount
Creates a newLedgerKeyAccountinstance.- Parameters:
accountID- theaccountIDfield 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 LedgerKey.LedgerKeyAccount 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
-
getAccountID
Value of theaccountIDfield.- Returns:
- the
accountIDfield value
-
setAccountID
Value of theaccountIDfield.- Parameters:
accountID- theaccountIDfield value
-
equals
-
hashCode
public int hashCode() -
toString
-