public class LedgerKey extends java.lang.Object implements XdrElement
union LedgerKey switch (LedgerEntryType type) { case ACCOUNT: struct { AccountID accountID; } account; case TRUSTLINE: struct { AccountID accountID; TrustLineAsset asset; } trustLine; case OFFER: struct { AccountID sellerID; int64 offerID; } offer; case DATA: struct { AccountID accountID; string64 dataName; } data; case CLAIMABLE_BALANCE: struct { ClaimableBalanceID balanceID; } claimableBalance; case LIQUIDITY_POOL: struct { PoolID liquidityPoolID; } liquidityPool; case CONTRACT_DATA: struct { SCAddress contract; SCVal key; ContractDataDurability durability; } contractData; case CONTRACT_CODE: struct { Hash hash; } contractCode; case CONFIG_SETTING: struct { ConfigSettingID configSettingID; } configSetting; case TTL: struct { // Hash of the LedgerKey that is associated with this TTLEntry Hash keyHash; } ttl; };
Modifier and Type | Class and Description |
---|---|
static class |
LedgerKey.LedgerKeyAccount
LedgerKeyAccount's original definition in the XDR file is:
|
static class |
LedgerKey.LedgerKeyBuilder |
static class |
LedgerKey.LedgerKeyClaimableBalance
LedgerKeyClaimableBalance's original definition in the XDR file is:
|
static class |
LedgerKey.LedgerKeyConfigSetting
LedgerKeyConfigSetting's original definition in the XDR file is:
|
static class |
LedgerKey.LedgerKeyContractCode
LedgerKeyContractCode's original definition in the XDR file is:
|
static class |
LedgerKey.LedgerKeyContractData
LedgerKeyContractData's original definition in the XDR file is:
|
static class |
LedgerKey.LedgerKeyData
LedgerKeyData's original definition in the XDR file is:
|
static class |
LedgerKey.LedgerKeyLiquidityPool
LedgerKeyLiquidityPool's original definition in the XDR file is:
|
static class |
LedgerKey.LedgerKeyOffer
LedgerKeyOffer's original definition in the XDR file is:
|
static class |
LedgerKey.LedgerKeyTrustLine
LedgerKeyTrustLine's original definition in the XDR file is:
|
static class |
LedgerKey.LedgerKeyTtl
LedgerKeyTtl's original definition in the XDR file is:
|
Constructor and Description |
---|
LedgerKey() |
LedgerKey(LedgerEntryType discriminant,
LedgerKey.LedgerKeyAccount account,
LedgerKey.LedgerKeyTrustLine trustLine,
LedgerKey.LedgerKeyOffer offer,
LedgerKey.LedgerKeyData data,
LedgerKey.LedgerKeyClaimableBalance claimableBalance,
LedgerKey.LedgerKeyLiquidityPool liquidityPool,
LedgerKey.LedgerKeyContractData contractData,
LedgerKey.LedgerKeyContractCode contractCode,
LedgerKey.LedgerKeyConfigSetting configSetting,
LedgerKey.LedgerKeyTtl ttl) |
toXdrBase64, toXdrByteArray
public LedgerKey()
public LedgerKey(LedgerEntryType discriminant, LedgerKey.LedgerKeyAccount account, LedgerKey.LedgerKeyTrustLine trustLine, LedgerKey.LedgerKeyOffer offer, LedgerKey.LedgerKeyData data, LedgerKey.LedgerKeyClaimableBalance claimableBalance, LedgerKey.LedgerKeyLiquidityPool liquidityPool, LedgerKey.LedgerKeyContractData contractData, LedgerKey.LedgerKeyContractCode contractCode, LedgerKey.LedgerKeyConfigSetting configSetting, LedgerKey.LedgerKeyTtl ttl)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static LedgerKey decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static LedgerKey fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static LedgerKey fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static LedgerKey.LedgerKeyBuilder builder()
public LedgerKey.LedgerKeyBuilder toBuilder()
public LedgerEntryType getDiscriminant()
public LedgerKey.LedgerKeyAccount getAccount()
public LedgerKey.LedgerKeyTrustLine getTrustLine()
public LedgerKey.LedgerKeyOffer getOffer()
public LedgerKey.LedgerKeyData getData()
public LedgerKey.LedgerKeyClaimableBalance getClaimableBalance()
public LedgerKey.LedgerKeyLiquidityPool getLiquidityPool()
public LedgerKey.LedgerKeyContractData getContractData()
public LedgerKey.LedgerKeyContractCode getContractCode()
public LedgerKey.LedgerKeyConfigSetting getConfigSetting()
public LedgerKey.LedgerKeyTtl getTtl()
public void setDiscriminant(LedgerEntryType discriminant)
public void setAccount(LedgerKey.LedgerKeyAccount account)
public void setTrustLine(LedgerKey.LedgerKeyTrustLine trustLine)
public void setOffer(LedgerKey.LedgerKeyOffer offer)
public void setData(LedgerKey.LedgerKeyData data)
public void setClaimableBalance(LedgerKey.LedgerKeyClaimableBalance claimableBalance)
public void setLiquidityPool(LedgerKey.LedgerKeyLiquidityPool liquidityPool)
public void setContractData(LedgerKey.LedgerKeyContractData contractData)
public void setContractCode(LedgerKey.LedgerKeyContractCode contractCode)
public void setConfigSetting(LedgerKey.LedgerKeyConfigSetting configSetting)
public void setTtl(LedgerKey.LedgerKeyTtl 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