Package org.stellar.sdk.xdr
Class LedgerKey
java.lang.Object
org.stellar.sdk.xdr.LedgerKey
- All Implemented Interfaces:
XdrElement
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
Nested ClassesModifier and TypeClassDescriptionstatic classLedgerKeyAccount's original definition in the XDR file is:static classstatic classLedgerKeyClaimableBalance's original definition in the XDR file is:static classLedgerKeyConfigSetting's original definition in the XDR file is:static classLedgerKeyContractCode's original definition in the XDR file is:static classLedgerKeyContractData's original definition in the XDR file is:static classLedgerKeyData's original definition in the XDR file is:static classLedgerKeyLiquidityPool's original definition in the XDR file is:static classLedgerKeyOffer's original definition in the XDR file is:static classLedgerKeyTrustLine's original definition in the XDR file is:static classLedgerKeyTtl's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionLedgerKey(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.LedgerKeyBuilderbuilder()static LedgerKeydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic LedgerKeyfromXdrBase64(String xdr) static LedgerKeyfromXdrByteArray(byte[] xdr) getData()getOffer()getTtl()inthashCode()voidsetAccount(LedgerKey.LedgerKeyAccount account) voidsetClaimableBalance(LedgerKey.LedgerKeyClaimableBalance claimableBalance) voidsetConfigSetting(LedgerKey.LedgerKeyConfigSetting configSetting) voidsetContractCode(LedgerKey.LedgerKeyContractCode contractCode) voidsetContractData(LedgerKey.LedgerKeyContractData contractData) voidvoidsetDiscriminant(LedgerEntryType discriminant) voidsetLiquidityPool(LedgerKey.LedgerKeyLiquidityPool liquidityPool) voidsetOffer(LedgerKey.LedgerKeyOffer offer) voidsetTrustLine(LedgerKey.LedgerKeyTrustLine trustLine) voidtoString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
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
- Specified by:
encodein interfaceXdrElement- 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
-