Class XAddress

java.lang.Object
org.xrpl.xrpl4j.model.immutables.Wrapper<String>
org.xrpl.xrpl4j.model.transactions.XAddress
All Implemented Interfaces:
Serializable, Comparable<Wrapper<String>>

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class XAddress extends Wrapper<String>
A wrapped String representing an X-Address on the XRPL.
See Also:
  • Method Details

    • value

      public String value()
      The wrapped value.
      Specified by:
      value in class Wrapper<String>
      Returns:
      The wrapped value.
    • withValue

      public final XAddress withValue(String value)
      Copy the current immutable object by setting a value for the value attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for value
      Returns:
      A modified copy of the this object
    • of

      public static XAddress of(String value)
      Construct a new immutable XAddress instance.
      Parameters:
      value - The value for the value attribute
      Returns:
      An immutable XAddress instance
    • builder

      public static XAddress.Builder builder()
      Creates a builder for XAddress.
       XAddress.builder()
          .value(String) // required value
          .build();
       
      Returns:
      A new XAddress builder
    • toString

      public String toString()
      Overrides:
      toString in class Wrapper<String>