Package org.stellar.sdk.xdr
Class LedgerKey
java.lang.Object
org.stellar.sdk.xdr.LedgerKey
LedgerKey's original definition in the XDR file is:
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; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
LedgerKeyAccount's original definition in the XDR file is:static class
static class
LedgerKeyClaimableBalance's original definition in the XDR file is:static class
LedgerKeyConfigSetting's original definition in the XDR file is:static class
LedgerKeyContractCode's original definition in the XDR file is:static class
LedgerKeyContractData's original definition in the XDR file is:static class
LedgerKeyData's original definition in the XDR file is:static class
LedgerKeyLiquidityPool's original definition in the XDR file is:static class
LedgerKeyOffer's original definition in the XDR file is:static class
LedgerKeyTrustLine's original definition in the XDR file is:static class
LedgerKeyTtl's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionLedgerKey
(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) -
Method Summary
Modifier and TypeMethodDescriptionstatic LedgerKey.LedgerKeyBuilder
builder()
static LedgerKey
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static LedgerKey
fromXdrBase64
(String xdr) static LedgerKey
fromXdrByteArray
(byte[] xdr) getData()
getOffer()
getTtl()
int
hashCode()
void
setAccount
(LedgerKey.LedgerKeyAccount account) void
setClaimableBalance
(LedgerKey.LedgerKeyClaimableBalance claimableBalance) void
setConfigSetting
(LedgerKey.LedgerKeyConfigSetting configSetting) void
setContractCode
(LedgerKey.LedgerKeyContractCode contractCode) void
setContractData
(LedgerKey.LedgerKeyContractData contractData) void
void
setDiscriminant
(LedgerEntryType discriminant) void
setLiquidityPool
(LedgerKey.LedgerKeyLiquidityPool liquidityPool) void
setOffer
(LedgerKey.LedgerKeyOffer offer) void
setTrustLine
(LedgerKey.LedgerKeyTrustLine trustLine) void
toString()
default String
default byte[]
-
Constructor Details
-
LedgerKey
public LedgerKey() -
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)
-
-
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
-