Class LedgerIndex
java.lang.Object
org.xrpl.xrpl4j.model.client.common.LedgerIndex
Represents a ledger index, which can either be an integer or a shortcut
String.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()minus(com.google.common.primitives.UnsignedInteger value) Subtract anUnsignedIntegerfrom thisLedgerIndex.minus(LedgerIndex other) Subtract aLedgerIndexfrom thisLedgerIndex.static LedgerIndexof(com.google.common.primitives.UnsignedInteger value) Construct aLedgerIndexfrom anUnsignedInteger.plus(com.google.common.primitives.UnsignedInteger other) Add anUnsignedIntegerto thisLedgerIndex.plus(LedgerIndex other) Add anotherLedgerIndexto thisLedgerIndex.toString()com.google.common.primitives.UnsignedIntegerAccessor for an unsigned integer value.
-
Method Details
-
of
Construct aLedgerIndexfrom anUnsignedInteger.- Parameters:
value- AnUnsignedIntegerspecifying a ledger index.- Returns:
- A
LedgerIndexwith the given value. - Throws:
NullPointerException- if value is null
-
unsignedIntegerValue
public com.google.common.primitives.UnsignedInteger unsignedIntegerValue()Accessor for an unsigned integer value.- Returns:
- A
UnsignedInteger.
-
plus
Add anUnsignedIntegerto thisLedgerIndex.- Parameters:
other- TheUnsignedIntegerto add to thisLedgerIndex.- Returns:
- The sum of the
UnsignedIntegerand thisLedgerIndex'sUnsignedIntegervalue.
-
plus
Add anotherLedgerIndexto thisLedgerIndex.- Parameters:
other- TheLedgerIndexto add to thisLedgerIndex.- Returns:
- The sum of the
LedgerIndex' and thisLedgerIndex'sUnsignedLongvalue.
-
minus
Subtract aLedgerIndexfrom thisLedgerIndex.- Parameters:
other- AnotherLedgerIndexto subtract.- Returns:
- A
LedgerIndexwrapping the difference of the two wrappedUnsignedLongvalues of thisLedgerIndexandother.
-
minus
Subtract anUnsignedIntegerfrom thisLedgerIndex.- Parameters:
value- AnUnsignedIntegerto subtract.- Returns:
- A
LedgerIndexwrapping the difference of thisLedgerIndex's value andvalue.
-
equals
-
hashCode
public int hashCode() -
toString
-