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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classLedgerEntryData's original definition in the XDR file is:static classLedgerEntryExt's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionLedgerEntry(Uint32 lastModifiedLedgerSeq, LedgerEntry.LedgerEntryData data, LedgerEntry.LedgerEntryExt ext) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerEntrydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic LedgerEntryfromXdrBase64(String xdr) static LedgerEntryfromXdrByteArray(byte[] xdr) getData()getExt()inthashCode()voidvoidvoidsetLastModifiedLedgerSeq(Uint32 lastModifiedLedgerSeq) toString()default Stringdefault 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
-