Class ImmutableMemoWrapper
java.lang.Object
org.xrpl.xrpl4j.model.transactions.ImmutableMemoWrapper
- All Implemented Interfaces:
MemoWrapper
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableMemoWrapper
extends Object
implements MemoWrapper
Immutable implementation of
MemoWrapper.
Use the builder to create immutable instances:
ImmutableMemoWrapper.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableMemoWrapper. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableMemoWrapper.Builderbuilder()Creates a builder forImmutableMemoWrapper.static ImmutableMemoWrappercopyOf(MemoWrapper instance) Creates an immutable copy of aMemoWrappervalue.booleanThis instance is equal to all instances ofImmutableMemoWrapperthat have equal attribute values.inthashCode()Computes a hash code from attributes:memo.memo()AMemocontaining arbitrary information.toString()Prints the immutable valueMemoWrapperwith attribute values.final ImmutableMemoWrapperCopy the current immutable object by setting a value for thememoattribute.
-
Method Details
-
memo
AMemocontaining arbitrary information.- Specified by:
memoin interfaceMemoWrapper- Returns:
- A
Memo.
-
withMemo
Copy the current immutable object by setting a value for thememoattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for memo- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableMemoWrapperthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:memo. -
toString
Prints the immutable valueMemoWrapperwith attribute values. -
copyOf
Creates an immutable copy of aMemoWrappervalue. 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 MemoWrapper instance
-
builder
Creates a builder forImmutableMemoWrapper.ImmutableMemoWrapper.builder() .memo(org.xrpl.xrpl4j.model.transactions.Memo) // requiredmemo.build();- Returns:
- A new ImmutableMemoWrapper builder
-