Package org.xrpl.xrpl4j.model.client.mpt
Class ImmutableMptHoldersRequestParams
java.lang.Object
org.xrpl.xrpl4j.model.client.mpt.ImmutableMptHoldersRequestParams
- All Implemented Interfaces:
MptHoldersRequestParams,XrplRequestParams
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableMptHoldersRequestParams
extends Object
implements MptHoldersRequestParams
Immutable implementation of
MptHoldersRequestParams.
Use the builder to create immutable instances:
ImmutableMptHoldersRequestParams.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableMptHoldersRequestParams. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableMptHoldersRequestParams.copyOf(MptHoldersRequestParams instance) Creates an immutable copy of aMptHoldersRequestParamsvalue.booleanThis instance is equal to all instances ofImmutableMptHoldersRequestParamsthat have equal attribute values.inthashCode()Computes a hash code from attributes:mpTokenIssuanceId,ledgerSpecifier,marker,limit.Optional<com.google.common.primitives.UnsignedInteger> limit()marker()TheMpTokenIssuanceIdof the issuance.toString()Prints the immutable valueMptHoldersRequestParamswith attribute values.Copy the current immutable object by setting a value for theledgerSpecifierattribute.withLimit(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionallimitattribute.Copy the current immutable object by setting an optional value for thelimitattribute.withMarker(Optional<? extends Marker> optional) Copy the current immutable object by setting an optional value for themarkerattribute.withMarker(Marker value) Copy the current immutable object by setting a present value for the optionalmarkerattribute.Copy the current immutable object by setting a value for thempTokenIssuanceIdattribute.
-
Method Details
-
mpTokenIssuanceId
TheMpTokenIssuanceIdof the issuance.- Specified by:
mpTokenIssuanceIdin interfaceMptHoldersRequestParams- Returns:
- An
MpTokenIssuanceId.
-
ledgerSpecifier
- Specified by:
ledgerSpecifierin interfaceMptHoldersRequestParams- Returns:
- A
LedgerSpecifier.
-
marker
- Specified by:
markerin interfaceMptHoldersRequestParams- Returns:
- The value of the
markerattribute
-
limit
- Specified by:
limitin interfaceMptHoldersRequestParams- Returns:
- The value of the
limitattribute
-
withMpTokenIssuanceId
Copy the current immutable object by setting a value for thempTokenIssuanceIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for mpTokenIssuanceId- Returns:
- A modified copy of the
thisobject
-
withLedgerSpecifier
Copy the current immutable object by setting a value for theledgerSpecifierattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ledgerSpecifier- Returns:
- A modified copy of the
thisobject
-
withMarker
Copy the current immutable object by setting a present value for the optionalmarkerattribute.- Parameters:
value- The value for marker- Returns:
- A modified copy of
thisobject
-
withMarker
Copy the current immutable object by setting an optional value for themarkerattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for marker- Returns:
- A modified copy of
thisobject
-
withLimit
public final ImmutableMptHoldersRequestParams withLimit(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a present value for the optionallimitattribute.- Parameters:
value- The value for limit- Returns:
- A modified copy of
thisobject
-
withLimit
public final ImmutableMptHoldersRequestParams withLimit(Optional<? extends com.google.common.primitives.UnsignedInteger> optional) Copy the current immutable object by setting an optional value for thelimitattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for limit- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableMptHoldersRequestParamsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:mpTokenIssuanceId,ledgerSpecifier,marker,limit. -
toString
Prints the immutable valueMptHoldersRequestParamswith attribute values. -
copyOf
Creates an immutable copy of aMptHoldersRequestParamsvalue. 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 MptHoldersRequestParams instance
-
builder
Creates a builder forImmutableMptHoldersRequestParams.ImmutableMptHoldersRequestParams.builder() .mpTokenIssuanceId(org.xrpl.xrpl4j.model.transactions.MpTokenIssuanceId) // requiredmpTokenIssuanceId.ledgerSpecifier(org.xrpl.xrpl4j.model.client.common.LedgerSpecifier) // requiredledgerSpecifier.marker(org.xrpl.xrpl4j.model.transactions.Marker) // optionalmarker.limit(com.google.common.primitives.UnsignedInteger) // optionallimit.build();- Returns:
- A new ImmutableMptHoldersRequestParams builder
-