Class XChainCount

java.lang.Object
org.xrpl.xrpl4j.model.immutables.Wrapper<com.google.common.primitives.UnsignedLong>
org.xrpl.xrpl4j.model.transactions.XChainCount
All Implemented Interfaces:
Serializable, Comparable<Wrapper<com.google.common.primitives.UnsignedLong>>

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class XChainCount extends Wrapper<com.google.common.primitives.UnsignedLong>
A wrapped UnsignedLong representing a counter for XLS-38 sidechains. This wrapper mostly exists to ensure we serialize fields of this type as a hex String in JSON, as these fields are STUInt64s in rippled, which are hex encoded in JSON.

This class will be marked Beta until the featureXChainBridge amendment is enabled on mainnet. Its API is subject to change.

See Also:
  • Method Details

    • value

      public com.google.common.primitives.UnsignedLong value()
      The wrapped value.
      Specified by:
      value in class Wrapper<com.google.common.primitives.UnsignedLong>
      Returns:
      The wrapped value.
    • of

      public static XChainCount of(com.google.common.primitives.UnsignedLong value)
      Construct a new immutable XChainCount instance.
      Parameters:
      value - The value for the value attribute
      Returns:
      An immutable XChainCount instance
    • toString

      public String toString()
      Overrides:
      toString in class Wrapper<com.google.common.primitives.UnsignedLong>