Package org.stellar.sdk.xdr
Class LedgerKey.LedgerKeyData
java.lang.Object
org.stellar.sdk.xdr.LedgerKey.LedgerKeyData
- All Implemented Interfaces:
XdrElement
- Enclosing class:
LedgerKey
LedgerKeyData's original definition in the XDR file is:
struct
{
AccountID accountID;
string64 dataName;
}
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionLedgerKeyData(AccountID accountID, String64 dataName) Creates a newLedgerKeyDatainstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerKey.LedgerKeyDatadecode(XdrDataInputStream stream) static LedgerKey.LedgerKeyDatadecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic LedgerKey.LedgerKeyDatastatic LedgerKey.LedgerKeyDatafromXdrBase64(String xdr) static LedgerKey.LedgerKeyDatafromXdrByteArray(byte[] xdr) Value of theaccountIDfield.Value of thedataNamefield.inthashCode()voidsetAccountID(AccountID accountID) Value of theaccountIDfield.voidsetDataName(String64 dataName) Value of thedataNamefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
LedgerKeyData
public LedgerKeyData() -
LedgerKeyData
Creates a newLedgerKeyDatainstance.- Parameters:
accountID- theaccountIDfield valuedataName- thedataNamefield 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.LedgerKeyData 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
-
getDataName
Value of thedataNamefield.- Returns:
- the
dataNamefield value
-
setAccountID
Value of theaccountIDfield.- Parameters:
accountID- theaccountIDfield value
-
setDataName
Value of thedataNamefield.- Parameters:
dataName- thedataNamefield value
-
equals
-
hashCode
public int hashCode() -
toString
-