Package org.xrpl.xrpl4j.model.ledger
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().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableUnknownLedgerObject.Nested classes/interfaces inherited from interface org.xrpl.xrpl4j.model.ledger.LedgerObject
LedgerObject.LedgerEntryType -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableUnknownLedgerObject.static ImmutableUnknownLedgerObjectcopyOf(UnknownLedgerObject instance) Creates an immutable copy of aUnknownLedgerObjectvalue.booleanThis instance is equal to all instances ofImmutableUnknownLedgerObjectthat have equal attribute values.inthashCode()Computes a hash code from attributes:ledgerEntryType,properties.The type of ledger object, as aString.com.fasterxml.jackson.databind.JsonNodeThe full JSON of the object, as aJsonNode.toString()Prints the immutable valueUnknownLedgerObjectwith attribute values.withProperties(com.fasterxml.jackson.databind.JsonNode value) Copy the current immutable object by setting a value for thepropertiesattribute.
-
Method Details
-
ledgerEntryType
The type of ledger object, as aString.- Specified by:
ledgerEntryTypein interfaceUnknownLedgerObject- Returns:
- The type of ledger object, as a
String.
-
properties
public com.fasterxml.jackson.databind.JsonNode properties()The full JSON of the object, as aJsonNode.- Specified by:
propertiesin interfaceUnknownLedgerObject- 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 thepropertiesattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for properties- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableUnknownLedgerObjectthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ledgerEntryType,properties. -
toString
Prints the immutable valueUnknownLedgerObjectwith attribute values. -
copyOf
Creates an immutable copy of aUnknownLedgerObjectvalue. 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
Creates a builder forImmutableUnknownLedgerObject.ImmutableUnknownLedgerObject.builder() .properties(com.fasterxml.jackson.databind.JsonNode) // requiredproperties.build();- Returns:
- A new ImmutableUnknownLedgerObject builder
-