Package org.stellar.sdk.xdr
Class LedgerEntry.LedgerEntryData
java.lang.Object
org.stellar.sdk.xdr.LedgerEntry.LedgerEntryData
- Enclosing class:
LedgerEntry
LedgerEntryData's original definition in the XDR file is:
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; }
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionLedgerEntryData
(LedgerEntryType discriminant, AccountEntry account, TrustLineEntry trustLine, OfferEntry offer, DataEntry data, ClaimableBalanceEntry claimableBalance, LiquidityPoolEntry liquidityPool, ContractDataEntry contractData, ContractCodeEntry contractCode, ConfigSettingEntry configSetting, TTLEntry ttl) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static LedgerEntry.LedgerEntryData
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static LedgerEntry.LedgerEntryData
fromXdrBase64
(String xdr) static LedgerEntry.LedgerEntryData
fromXdrByteArray
(byte[] xdr) getData()
getOffer()
getTtl()
int
hashCode()
void
setAccount
(AccountEntry account) void
setClaimableBalance
(ClaimableBalanceEntry claimableBalance) void
setConfigSetting
(ConfigSettingEntry configSetting) void
setContractCode
(ContractCodeEntry contractCode) void
setContractData
(ContractDataEntry contractData) void
void
setDiscriminant
(LedgerEntryType discriminant) void
setLiquidityPool
(LiquidityPoolEntry liquidityPool) void
setOffer
(OfferEntry offer) void
setTrustLine
(TrustLineEntry trustLine) void
toString()
default String
default byte[]
-
Constructor Details
-
LedgerEntryData
public LedgerEntryData() -
LedgerEntryData
public LedgerEntryData(LedgerEntryType discriminant, AccountEntry account, TrustLineEntry trustLine, OfferEntry offer, DataEntry data, ClaimableBalanceEntry claimableBalance, LiquidityPoolEntry liquidityPool, ContractDataEntry contractData, ContractCodeEntry contractCode, ConfigSettingEntry configSetting, TTLEntry ttl)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getAccount
-
getTrustLine
-
getOffer
-
getData
-
getClaimableBalance
-
getLiquidityPool
-
getContractData
-
getContractCode
-
getConfigSetting
-
getTtl
-
setDiscriminant
-
setAccount
-
setTrustLine
-
setOffer
-
setData
-
setClaimableBalance
-
setLiquidityPool
-
setContractData
-
setContractCode
-
setConfigSetting
-
setTtl
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-