Package org.stellar.sdk.xdr
Class LedgerCloseMetaBatch
java.lang.Object
org.stellar.sdk.xdr.LedgerCloseMetaBatch
- All Implemented Interfaces:
XdrElement
LedgerCloseMetaBatch's original definition in the XDR file is:
struct LedgerCloseMetaBatch
{
// starting ledger sequence number in the batch
uint32 startSequence;
// ending ledger sequence number in the batch
uint32 endSequence;
// Ledger close meta for each ledger within the batch
LedgerCloseMeta ledgerCloseMetas<>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionLedgerCloseMetaBatch(Uint32 startSequence, Uint32 endSequence, LedgerCloseMeta[] ledgerCloseMetas) Creates a newLedgerCloseMetaBatchinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static LedgerCloseMetaBatchdecode(XdrDataInputStream stream) static LedgerCloseMetaBatchdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic LedgerCloseMetaBatchstatic LedgerCloseMetaBatchfromXdrBase64(String xdr) static LedgerCloseMetaBatchfromXdrByteArray(byte[] xdr) Value of theendSequencefield.Value of theledgerCloseMetasfield.Value of thestartSequencefield.inthashCode()voidsetEndSequence(Uint32 endSequence) Value of theendSequencefield.voidsetLedgerCloseMetas(LedgerCloseMeta[] ledgerCloseMetas) Value of theledgerCloseMetasfield.voidsetStartSequence(Uint32 startSequence) Value of thestartSequencefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
LedgerCloseMetaBatch
public LedgerCloseMetaBatch() -
LedgerCloseMetaBatch
public LedgerCloseMetaBatch(Uint32 startSequence, Uint32 endSequence, LedgerCloseMeta[] ledgerCloseMetas) Creates a newLedgerCloseMetaBatchinstance.- Parameters:
startSequence- thestartSequencefield valueendSequence- theendSequencefield valueledgerCloseMetas- theledgerCloseMetasfield 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
public static LedgerCloseMetaBatch decode(XdrDataInputStream stream, int maxDepth) throws IOException - 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
-
getStartSequence
Value of thestartSequencefield.- Returns:
- the
startSequencefield value
-
getEndSequence
Value of theendSequencefield.- Returns:
- the
endSequencefield value
-
getLedgerCloseMetas
Value of theledgerCloseMetasfield.- Returns:
- the
ledgerCloseMetasfield value
-
setStartSequence
Value of thestartSequencefield.- Parameters:
startSequence- thestartSequencefield value
-
setEndSequence
Value of theendSequencefield.- Parameters:
endSequence- theendSequencefield value
-
setLedgerCloseMetas
Value of theledgerCloseMetasfield.- Parameters:
ledgerCloseMetas- theledgerCloseMetasfield value
-
equals
-
hashCode
public int hashCode() -
toString
-