Class GetLedgersResponse.LedgerInfo
java.lang.Object
org.stellar.sdk.responses.sorobanrpc.GetLedgersResponse.LedgerInfo
- Enclosing class:
GetLedgersResponse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getHash()
The field can be parsed asLedgerHeaderHistoryEntry
object.The field can be parsed asLedgerCloseMeta
object.int
hashCode()
Parses theenvelopeXdr
field from a string to anLedgerHeaderHistoryEntry
object.Parses themetadataXdr
field from a string to anLedgerCloseMeta
object.toString()
-
Constructor Details
-
LedgerInfo
public LedgerInfo(String hash, Long sequence, Long ledgerCloseTime, String headerXdr, String metadataXdr) Creates a newLedgerInfo
instance.- Parameters:
hash
-sequence
-ledgerCloseTime
-headerXdr
- The field can be parsed asLedgerHeaderHistoryEntry
object.metadataXdr
- The field can be parsed asLedgerCloseMeta
object.
-
-
Method Details
-
parseHeaderXdr
Parses theenvelopeXdr
field from a string to anLedgerHeaderHistoryEntry
object.- Returns:
- the parsed
LedgerHeaderHistoryEntry
object
-
parseMetadataXdr
Parses themetadataXdr
field from a string to anLedgerCloseMeta
object.- Returns:
- the parsed
LedgerCloseMeta
object
-
getHash
-
getSequence
-
getLedgerCloseTime
-
getHeaderXdr
The field can be parsed asLedgerHeaderHistoryEntry
object. -
getMetadataXdr
The field can be parsed asLedgerCloseMeta
object. -
equals
-
hashCode
public int hashCode() -
toString
-