Class LedgerBounds

java.lang.Object
org.stellar.sdk.LedgerBounds

public final class LedgerBounds extends Object
LedgerBounds are Preconditions of a transaction per CAP-21
See Also:
  • Constructor Details

    • LedgerBounds

      public LedgerBounds(long minLedger, long maxLedger)
  • Method Details

    • fromXdr

      public static LedgerBounds fromXdr(LedgerBounds xdrLedgerBounds)
      Creates a new LedgerBounds object.
      Parameters:
      xdrLedgerBounds - XDR LedgerBounds object to convert.
      Returns:
      LedgerBounds
    • toXdr

      public 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object