Package org.xrpl.xrpl4j.model.ledger
Class ImmutableXChainOwnedCreateAccountClaimIdObject
java.lang.Object
org.xrpl.xrpl4j.model.ledger.ImmutableXChainOwnedCreateAccountClaimIdObject
- All Implemented Interfaces:
LedgerObject,XChainOwnedCreateAccountClaimIdObject
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableXChainOwnedCreateAccountClaimIdObject
extends Object
implements XChainOwnedCreateAccountClaimIdObject
Immutable implementation of
XChainOwnedCreateAccountClaimIdObject.
Use the builder to create immutable instances:
ImmutableXChainOwnedCreateAccountClaimIdObject.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableXChainOwnedCreateAccountClaimIdObject.Nested classes/interfaces inherited from interface org.xrpl.xrpl4j.model.ledger.LedgerObject
LedgerObject.LedgerEntryType -
Method Summary
Modifier and TypeMethodDescriptionaccount()The account that owns this object.builder()Creates a builder forImmutableXChainOwnedCreateAccountClaimIdObject.copyOf(XChainOwnedCreateAccountClaimIdObject instance) Creates an immutable copy of aXChainOwnedCreateAccountClaimIdObjectvalue.booleanThis instance is equal to all instances ofImmutableXChainOwnedCreateAccountClaimIdObjectthat have equal attribute values.flags()A bit-map of boolean flags.inthashCode()Computes a hash code from attributes:ledgerEntryType,flags,account,xChainBridge,xChainCreateAccountAttestations,xChainAccountCreateCount,ownerNode,previousTransactionId,previousTransactionLedgerSequence,index.index()The unique ID of theXChainOwnedCreateAccountClaimIdObject.The type of ledger object, which will always be "XChainOwnedCreateAccountClaimIdObject" in this case.A hint indicating which page of the sender's owner directory links to this object, in case the directory consists of multiple pages.The identifying hash of the transaction that most recently modified this object.com.google.common.primitives.UnsignedIntegerThe index of the ledger that contains the transaction that most recently modified this object.toString()Prints the immutable valueXChainOwnedCreateAccountClaimIdObjectwith attribute values.withAccount(Address value) Copy the current immutable object by setting a value for theaccountattribute.Copy the current immutable object by setting a value for theindexattribute.withOwnerNode(String value) Copy the current immutable object by setting a value for theownerNodeattribute.withPreviousTransactionId(Hash256 value) Copy the current immutable object by setting a value for thepreviousTransactionIdattribute.withPreviousTransactionLedgerSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a value for thepreviousTransactionLedgerSequenceattribute.Copy the current immutable object by setting a value for thexChainAccountCreateCountattribute.withXChainBridge(XChainBridge value) Copy the current immutable object by setting a value for thexChainBridgeattribute.withXChainCreateAccountAttestations(Iterable<? extends XChainCreateAccountAttestation> elements) Copy the current immutable object with elements that replace the content ofxChainCreateAccountAttestations.Copy the current immutable object with elements that replace the content ofxChainCreateAccountAttestations.An integer that determines the order that accounts created through cross-chain transfers must be performed.The door accounts and assets of the bridge this object correlates to.com.google.common.collect.ImmutableList<XChainCreateAccountAttestation> Attestations collected from the witness servers.
-
Method Details
-
ledgerEntryType
The type of ledger object, which will always be "XChainOwnedCreateAccountClaimIdObject" in this case.- Specified by:
ledgerEntryTypein interfaceXChainOwnedCreateAccountClaimIdObject- Returns:
- Always returns
LedgerObject.LedgerEntryType.XCHAIN_OWNED_CREATE_ACCOUNT_CLAIM_ID.
-
flags
A bit-map of boolean flags. No flags are defined forXChainOwnedCreateAccountClaimIdObject, so this value is always 0.- Specified by:
flagsin interfaceXChainOwnedCreateAccountClaimIdObject- Returns:
- Always
Flags.UNSET.
-
account
The account that owns this object.- Specified by:
accountin interfaceXChainOwnedCreateAccountClaimIdObject- Returns:
- An
Address.
-
xChainBridge
The door accounts and assets of the bridge this object correlates to.- Specified by:
xChainBridgein interfaceXChainOwnedCreateAccountClaimIdObject- Returns:
- An
XChainBridge.
-
xChainCreateAccountAttestations
public com.google.common.collect.ImmutableList<XChainCreateAccountAttestation> xChainCreateAccountAttestations()Attestations collected from the witness servers. This includes the parameters needed to recreate the message that was signed, including the amount, destination, signature reward amount, and reward account for that signature. With the exception of the reward account, all signatures must sign the message created with common parameters.- Specified by:
xChainCreateAccountAttestationsin interfaceXChainOwnedCreateAccountClaimIdObject- Returns:
- A
ListofXChainCreateAccountAttestations.
-
xChainAccountCreateCount
An integer that determines the order that accounts created through cross-chain transfers must be performed. Smaller numbers must execute before larger numbers.- Specified by:
xChainAccountCreateCountin interfaceXChainOwnedCreateAccountClaimIdObject- Returns:
- An
XChainCount.
-
ownerNode
A hint indicating which page of the sender's owner directory links to this object, in case the directory consists of multiple pages.Note: The object does not contain a direct link to the owner directory containing it, since that value can be derived from the Account.
- Specified by:
ownerNodein interfaceXChainOwnedCreateAccountClaimIdObject- Returns:
- A
Stringcontaining the owner node hint.
-
previousTransactionId
The identifying hash of the transaction that most recently modified this object.- Specified by:
previousTransactionIdin interfaceXChainOwnedCreateAccountClaimIdObject- Returns:
- A
Hash256containing the previous transaction hash.
-
previousTransactionLedgerSequence
public com.google.common.primitives.UnsignedInteger previousTransactionLedgerSequence()The index of the ledger that contains the transaction that most recently modified this object.- Specified by:
previousTransactionLedgerSequencein interfaceXChainOwnedCreateAccountClaimIdObject- Returns:
- An
UnsignedIntegerrepresenting the previous transaction ledger sequence.
-
index
The unique ID of theXChainOwnedCreateAccountClaimIdObject.- Specified by:
indexin interfaceXChainOwnedCreateAccountClaimIdObject- Returns:
- A
Hash256containing the ID.
-
withAccount
Copy the current immutable object by setting a value for theaccountattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for account- Returns:
- A modified copy of the
thisobject
-
withXChainBridge
Copy the current immutable object by setting a value for thexChainBridgeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for xChainBridge- Returns:
- A modified copy of the
thisobject
-
withXChainCreateAccountAttestations
public final ImmutableXChainOwnedCreateAccountClaimIdObject withXChainCreateAccountAttestations(XChainCreateAccountAttestation... elements) Copy the current immutable object with elements that replace the content ofxChainCreateAccountAttestations.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withXChainCreateAccountAttestations
public final ImmutableXChainOwnedCreateAccountClaimIdObject withXChainCreateAccountAttestations(Iterable<? extends XChainCreateAccountAttestation> elements) Copy the current immutable object with elements that replace the content ofxChainCreateAccountAttestations. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of xChainCreateAccountAttestations elements to set- Returns:
- A modified copy of
thisobject
-
withXChainAccountCreateCount
public final ImmutableXChainOwnedCreateAccountClaimIdObject withXChainAccountCreateCount(XChainCount value) Copy the current immutable object by setting a value for thexChainAccountCreateCountattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for xChainAccountCreateCount- Returns:
- A modified copy of the
thisobject
-
withOwnerNode
Copy the current immutable object by setting a value for theownerNodeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ownerNode- Returns:
- A modified copy of the
thisobject
-
withPreviousTransactionId
public final ImmutableXChainOwnedCreateAccountClaimIdObject withPreviousTransactionId(Hash256 value) Copy the current immutable object by setting a value for thepreviousTransactionIdattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for previousTransactionId- Returns:
- A modified copy of the
thisobject
-
withPreviousTransactionLedgerSequence
public final ImmutableXChainOwnedCreateAccountClaimIdObject withPreviousTransactionLedgerSequence(com.google.common.primitives.UnsignedInteger value) Copy the current immutable object by setting a value for thepreviousTransactionLedgerSequenceattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for previousTransactionLedgerSequence- Returns:
- A modified copy of the
thisobject
-
withIndex
Copy the current immutable object by setting a value for theindexattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for index- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableXChainOwnedCreateAccountClaimIdObjectthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ledgerEntryType,flags,account,xChainBridge,xChainCreateAccountAttestations,xChainAccountCreateCount,ownerNode,previousTransactionId,previousTransactionLedgerSequence,index. -
toString
Prints the immutable valueXChainOwnedCreateAccountClaimIdObjectwith attribute values. -
copyOf
public static ImmutableXChainOwnedCreateAccountClaimIdObject copyOf(XChainOwnedCreateAccountClaimIdObject instance) Creates an immutable copy of aXChainOwnedCreateAccountClaimIdObjectvalue. 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 XChainOwnedCreateAccountClaimIdObject instance
-
builder
Creates a builder forImmutableXChainOwnedCreateAccountClaimIdObject.ImmutableXChainOwnedCreateAccountClaimIdObject.builder() .account(org.xrpl.xrpl4j.model.transactions.Address) // requiredaccount.xChainBridge(org.xrpl.xrpl4j.model.transactions.XChainBridge) // requiredxChainBridge.addXChainCreateAccountAttestations|addAllXChainCreateAccountAttestations(org.xrpl.xrpl4j.model.ledger.XChainCreateAccountAttestation) //xChainCreateAccountAttestationselements .xChainAccountCreateCount(org.xrpl.xrpl4j.model.transactions.XChainCount) // requiredxChainAccountCreateCount.ownerNode(String) // requiredownerNode.previousTransactionId(org.xrpl.xrpl4j.model.transactions.Hash256) // requiredpreviousTransactionId.previousTransactionLedgerSequence(com.google.common.primitives.UnsignedInteger) // requiredpreviousTransactionLedgerSequence.index(org.xrpl.xrpl4j.model.transactions.Hash256) // requiredindex.build();- Returns:
- A new ImmutableXChainOwnedCreateAccountClaimIdObject builder
-