Class ImmutablePriceDataWrapper
java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutablePriceDataWrapper
- All Implemented Interfaces:
PriceDataWrapper
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutablePriceDataWrapper
extends Object
implements PriceDataWrapper
Immutable implementation of
PriceDataWrapper.
Use the builder to create immutable instances:
ImmutablePriceDataWrapper.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutablePriceDataWrapper. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutablePriceDataWrapper.static ImmutablePriceDataWrappercopyOf(PriceDataWrapper instance) Creates an immutable copy of aPriceDataWrappervalue.booleanThis instance is equal to all instances ofImmutablePriceDataWrapperthat have equal attribute values.inthashCode()Computes a hash code from attributes:priceData.The price data.toString()Prints the immutable valuePriceDataWrapperwith attribute values.withPriceData(PriceData value) Copy the current immutable object by setting a value for thepriceDataattribute.
-
Method Details
-
priceData
The price data.- Specified by:
priceDatain interfacePriceDataWrapper- Returns:
- A
PriceData.
-
withPriceData
Copy the current immutable object by setting a value for thepriceDataattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for priceData- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutablePriceDataWrapperthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:priceData. -
toString
Prints the immutable valuePriceDataWrapperwith attribute values. -
copyOf
Creates an immutable copy of aPriceDataWrappervalue. 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 PriceDataWrapper instance
-
builder
Creates a builder forImmutablePriceDataWrapper.ImmutablePriceDataWrapper.builder() .priceData(org.xrpl.xrpl4j.model.transactions.PriceData) // requiredpriceData.build();- Returns:
- A new ImmutablePriceDataWrapper builder
-