Package org.stellar.sdk
Class LedgerBounds
java.lang.Object
org.stellar.sdk.LedgerBounds
LedgerBounds are Preconditions of a transaction per CAP-21
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static LedgerBounds
fromXdr
(LedgerBounds xdrLedgerBounds) Creates a new LedgerBounds object.long
Maximum ledger sequence number of the transaction.long
Minimum ledger sequence number of the transaction.int
hashCode()
toString()
toXdr()
Returns the XDR LedgerBounds object.
-
Constructor Details
-
LedgerBounds
public LedgerBounds(long minLedger, long maxLedger)
-
-
Method Details
-
fromXdr
Creates a new LedgerBounds object.- Parameters:
xdrLedgerBounds
- XDR LedgerBounds object to convert.- Returns:
- LedgerBounds
-
toXdr
Returns the XDR LedgerBounds object.- Returns:
- the XDR LedgerBounds object.
-
getMinLedger
public long getMinLedger()Minimum ledger sequence number of the transaction. -
getMaxLedger
public long getMaxLedger()Maximum ledger sequence number of the transaction. -
equals
-
hashCode
public int hashCode() -
toString
-