public static class LedgerEntry.LedgerEntryData extends java.lang.Object implements XdrElement
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; }
Modifier and Type | Class and Description |
---|---|
static class |
LedgerEntry.LedgerEntryData.LedgerEntryDataBuilder |
Constructor and Description |
---|
LedgerEntryData() |
LedgerEntryData(LedgerEntryType discriminant,
AccountEntry account,
TrustLineEntry trustLine,
OfferEntry offer,
DataEntry data,
ClaimableBalanceEntry claimableBalance,
LiquidityPoolEntry liquidityPool,
ContractDataEntry contractData,
ContractCodeEntry contractCode,
ConfigSettingEntry configSetting,
TTLEntry ttl) |
toXdrBase64, toXdrByteArray
public 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)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static LedgerEntry.LedgerEntryData decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static LedgerEntry.LedgerEntryData fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static LedgerEntry.LedgerEntryData fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static LedgerEntry.LedgerEntryData.LedgerEntryDataBuilder builder()
public LedgerEntry.LedgerEntryData.LedgerEntryDataBuilder toBuilder()
public LedgerEntryType getDiscriminant()
public AccountEntry getAccount()
public TrustLineEntry getTrustLine()
public OfferEntry getOffer()
public DataEntry getData()
public ClaimableBalanceEntry getClaimableBalance()
public LiquidityPoolEntry getLiquidityPool()
public ContractDataEntry getContractData()
public ContractCodeEntry getContractCode()
public ConfigSettingEntry getConfigSetting()
public TTLEntry getTtl()
public void setDiscriminant(LedgerEntryType discriminant)
public void setAccount(AccountEntry account)
public void setTrustLine(TrustLineEntry trustLine)
public void setOffer(OfferEntry offer)
public void setData(DataEntry data)
public void setClaimableBalance(ClaimableBalanceEntry claimableBalance)
public void setLiquidityPool(LiquidityPoolEntry liquidityPool)
public void setContractData(ContractDataEntry contractData)
public void setContractCode(ContractCodeEntry contractCode)
public void setConfigSetting(ConfigSettingEntry configSetting)
public void setTtl(TTLEntry ttl)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object