Class LedgerIndexShortcut

java.lang.Object
org.xrpl.xrpl4j.model.client.common.LedgerIndexShortcut

public class LedgerIndexShortcut extends Object
A String wrapping class that defines three static constants representing shortcut values which can be used to specify a ledger index in a rippled API request.
  • Field Details

    • CURRENT

      public static final LedgerIndexShortcut CURRENT
      Request information about a rippled server's current working version of the ledger.
    • VALIDATED

      public static final LedgerIndexShortcut VALIDATED
      Request information about for the most recent ledger that has been validated by consensus.
    • CLOSED

      public static final LedgerIndexShortcut CLOSED
      Request information about the most recent ledger that has been closed for modifications and proposed for validation.
  • Method Details

    • getValue

      public String getValue()
      Accessor for the value of this shortcut.
      Returns:
      String
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object