Class ImmutableBatchSignerWrapper

java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableBatchSignerWrapper
All Implemented Interfaces:
BatchSignerWrapper

@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableBatchSignerWrapper extends Object implements BatchSignerWrapper
Immutable implementation of BatchSignerWrapper.

Use the builder to create immutable instances: ImmutableBatchSignerWrapper.builder().

  • Method Details

    • batchSigner

      public BatchSigner batchSigner()
      The BatchSigner that this wrapper wraps.
      Specified by:
      batchSigner in interface BatchSignerWrapper
      Returns:
      A BatchSigner.
    • withBatchSigner

      public final ImmutableBatchSignerWrapper withBatchSigner(BatchSigner value)
      Copy the current immutable object by setting a value for the batchSigner attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for batchSigner
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableBatchSignerWrapper that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: batchSigner.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value BatchSignerWrapper with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableBatchSignerWrapper copyOf(BatchSignerWrapper instance)
      Creates an immutable copy of a BatchSignerWrapper value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable BatchSignerWrapper instance
    • builder

      public static ImmutableBatchSignerWrapper.Builder builder()
      Creates a builder for ImmutableBatchSignerWrapper.
       ImmutableBatchSignerWrapper.builder()
          .batchSigner(org.xrpl.xrpl4j.model.transactions.BatchSigner) // required batchSigner
          .build();
       
      Returns:
      A new ImmutableBatchSignerWrapper builder