Package org.stellar.sdk.xdr
Class LedgerEntry
java.lang.Object
org.stellar.sdk.xdr.LedgerEntry
LedgerEntry's original definition in the XDR file is:
struct LedgerEntry { uint32 lastModifiedLedgerSeq; // ledger the LedgerEntry was last changed union switch (LedgerEntryType type) { case ACCOUNT: AccountEntry account; case TRUSTLINE: TrustLineEntry trustLine; case OFFER: OfferEntry offer; case DATA: DataEntry data; case CLAIMABLE_BALANCE: ClaimableBalanceEntry claimableBalance; case LIQUIDITY_POOL: LiquidityPoolEntry liquidityPool; case CONTRACT_DATA: ContractDataEntry contractData; case CONTRACT_CODE: ContractCodeEntry contractCode; case CONFIG_SETTING: ConfigSettingEntry configSetting; case TTL: TTLEntry ttl; } data; // reserved for future use union switch (int v) { case 0: void; case 1: LedgerEntryExtensionV1 v1; } ext; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
LedgerEntryData's original definition in the XDR file is:static class
LedgerEntryExt's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionLedgerEntry
(Uint32 lastModifiedLedgerSeq, LedgerEntry.LedgerEntryData data, LedgerEntry.LedgerEntryExt ext) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static LedgerEntry
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static LedgerEntry
fromXdrBase64
(String xdr) static LedgerEntry
fromXdrByteArray
(byte[] xdr) getData()
getExt()
int
hashCode()
void
void
void
setLastModifiedLedgerSeq
(Uint32 lastModifiedLedgerSeq) toString()
default String
default byte[]
-
Constructor Details
-
LedgerEntry
public LedgerEntry() -
LedgerEntry
public LedgerEntry(Uint32 lastModifiedLedgerSeq, LedgerEntry.LedgerEntryData data, LedgerEntry.LedgerEntryExt ext)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getLastModifiedLedgerSeq
-
getData
-
getExt
-
setLastModifiedLedgerSeq
-
setData
-
setExt
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-