Package org.stellar.sdk.xdr
Class LedgerCloseMetaV0
java.lang.Object
org.stellar.sdk.xdr.LedgerCloseMetaV0
- All Implemented Interfaces:
XdrElement
LedgerCloseMetaV0's original definition in the XDR file is:
struct LedgerCloseMetaV0
{
LedgerHeaderHistoryEntry ledgerHeader;
// NB: txSet is sorted in "Hash order"
TransactionSet txSet;
// NB: transactions are sorted in apply order here
// fees for all transactions are processed first
// followed by applying transactions
TransactionResultMeta txProcessing<>;
// upgrades are applied last
UpgradeEntryMeta upgradesProcessing<>;
// other misc information attached to the ledger close
SCPHistoryEntry scpInfo<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionLedgerCloseMetaV0(LedgerHeaderHistoryEntry ledgerHeader, TransactionSet txSet, TransactionResultMeta[] txProcessing, UpgradeEntryMeta[] upgradesProcessing, SCPHistoryEntry[] scpInfo) Creates a newLedgerCloseMetaV0instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerCloseMetaV0decode(XdrDataInputStream stream) static LedgerCloseMetaV0decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic LedgerCloseMetaV0static LedgerCloseMetaV0fromXdrBase64(String xdr) static LedgerCloseMetaV0fromXdrByteArray(byte[] xdr) Value of theledgerHeaderfield.Value of thescpInfofield.Value of thetxProcessingfield.getTxSet()Value of thetxSetfield.Value of theupgradesProcessingfield.inthashCode()voidsetLedgerHeader(LedgerHeaderHistoryEntry ledgerHeader) Value of theledgerHeaderfield.voidsetScpInfo(SCPHistoryEntry[] scpInfo) Value of thescpInfofield.voidsetTxProcessing(TransactionResultMeta[] txProcessing) Value of thetxProcessingfield.voidsetTxSet(TransactionSet txSet) Value of thetxSetfield.voidsetUpgradesProcessing(UpgradeEntryMeta[] upgradesProcessing) Value of theupgradesProcessingfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
LedgerCloseMetaV0
public LedgerCloseMetaV0() -
LedgerCloseMetaV0
public LedgerCloseMetaV0(LedgerHeaderHistoryEntry ledgerHeader, TransactionSet txSet, TransactionResultMeta[] txProcessing, UpgradeEntryMeta[] upgradesProcessing, SCPHistoryEntry[] scpInfo) Creates a newLedgerCloseMetaV0instance.- Parameters:
ledgerHeader- theledgerHeaderfield valuetxSet- thetxSetfield valuetxProcessing- thetxProcessingfield valueupgradesProcessing- theupgradesProcessingfield valuescpInfo- thescpInfofield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getLedgerHeader
Value of theledgerHeaderfield.- Returns:
- the
ledgerHeaderfield value
-
getTxSet
Value of thetxSetfield.- Returns:
- the
txSetfield value
-
getTxProcessing
Value of thetxProcessingfield.- Returns:
- the
txProcessingfield value
-
getUpgradesProcessing
Value of theupgradesProcessingfield.- Returns:
- the
upgradesProcessingfield value
-
getScpInfo
Value of thescpInfofield.- Returns:
- the
scpInfofield value
-
setLedgerHeader
Value of theledgerHeaderfield.- Parameters:
ledgerHeader- theledgerHeaderfield value
-
setTxSet
Value of thetxSetfield.- Parameters:
txSet- thetxSetfield value
-
setTxProcessing
Value of thetxProcessingfield.- Parameters:
txProcessing- thetxProcessingfield value
-
setUpgradesProcessing
Value of theupgradesProcessingfield.- Parameters:
upgradesProcessing- theupgradesProcessingfield value
-
setScpInfo
Value of thescpInfofield.- Parameters:
scpInfo- thescpInfofield value
-
equals
-
hashCode
public int hashCode() -
toString
-