Class ImmutableUnknownLedgerObject

java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableUnknownLedgerObject
All Implemented Interfaces:
LedgerObject, UnknownLedgerObject

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

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

  • Method Details

    • ledgerEntryType

      public String ledgerEntryType()
      The type of ledger object, as a String.
      Specified by:
      ledgerEntryType in interface UnknownLedgerObject
      Returns:
      The type of ledger object, as a String.
    • properties

      public com.fasterxml.jackson.databind.JsonNode properties()
      The full JSON of the object, as a JsonNode.
      Specified by:
      properties in interface UnknownLedgerObject
      Returns:
      The full JSON of the object, as a JsonNode.
    • withProperties

      public final ImmutableUnknownLedgerObject withProperties(com.fasterxml.jackson.databind.JsonNode value)
      Copy the current immutable object by setting a value for the properties attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for properties
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableUnknownLedgerObject 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: ledgerEntryType, properties.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static ImmutableUnknownLedgerObject copyOf(UnknownLedgerObject instance)
      Creates an immutable copy of a UnknownLedgerObject 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 UnknownLedgerObject instance
    • builder

      public static ImmutableUnknownLedgerObject.Builder builder()
      Creates a builder for ImmutableUnknownLedgerObject.
       ImmutableUnknownLedgerObject.builder()
          .properties(com.fasterxml.jackson.databind.JsonNode) // required properties
          .build();
       
      Returns:
      A new ImmutableUnknownLedgerObject builder