Class ImmutableAccountInfoRequestParams

    • Method Detail

      • strict

        public boolean strict()
        A boolean indicating if the account() field only accepts a public key or XRP Ledger Address. Always true, as account() is always an Address.
        Specified by:
        strict in interface AccountInfoRequestParams
        Returns:
        true if the account field only accepts a public key or XRP Ledger address, otherwise false. Defaults to true.
      • queue

        public boolean queue()
        If true, and the FeeEscalation amendment is enabled, also returns stats about queued transactions associated with this account. Can only be used when querying for the data from the current open ledger.
        Specified by:
        queue in interface AccountInfoRequestParams
        Returns:
        true if queue transactions should be returned in the response, false if not. Defaults to false.
      • withAccount

        public final ImmutableAccountInfoRequestParams withAccount​(Address value)
        Copy the current immutable object by setting a value for the account attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for account
        Returns:
        A modified copy of the this object
      • withLedgerHash

        @Deprecated
        public final ImmutableAccountInfoRequestParams withLedgerHash​(Hash256 value)
        Deprecated.
        Copy the current immutable object by setting a present value for the optional ledgerHash attribute.
        Parameters:
        value - The value for ledgerHash
        Returns:
        A modified copy of this object
      • withLedgerHash

        @Deprecated
        public final ImmutableAccountInfoRequestParams withLedgerHash​(Optional<? extends Hash256> optional)
        Deprecated.
        Copy the current immutable object by setting an optional value for the ledgerHash attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for ledgerHash
        Returns:
        A modified copy of this object
      • withLedgerIndex

        @Deprecated
        public final ImmutableAccountInfoRequestParams withLedgerIndex​(@Nullable
                                                                       LedgerIndex value)
        Deprecated.
        Copy the current immutable object by setting a value for the ledgerIndex attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for ledgerIndex (can be null)
        Returns:
        A modified copy of the this object
      • withLedgerSpecifier

        public final ImmutableAccountInfoRequestParams withLedgerSpecifier​(LedgerSpecifier value)
        Copy the current immutable object by setting a value for the ledgerSpecifier attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for ledgerSpecifier
        Returns:
        A modified copy of the this object
      • withQueue

        public final ImmutableAccountInfoRequestParams withQueue​(boolean value)
        Copy the current immutable object by setting a value for the queue attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for queue
        Returns:
        A modified copy of the this object
      • withSignerLists

        public final ImmutableAccountInfoRequestParams withSignerLists​(boolean value)
        Copy the current immutable object by setting a value for the signerLists attribute. A value equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for signerLists
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableAccountInfoRequestParams that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: account, ledgerSpecifier, strict, queue, signerLists.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value AccountInfoRequestParams with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • builder

        public static ImmutableAccountInfoRequestParams.Builder builder()
        Creates a builder for ImmutableAccountInfoRequestParams.
         ImmutableAccountInfoRequestParams.builder()
            .account(org.xrpl.xrpl4j.model.transactions.Address) // required account
            .ledgerHash(org.xrpl.xrpl4j.model.transactions.Hash256) // optional ledgerHash
            .ledgerIndex(org.xrpl.xrpl4j.model.client.common.LedgerIndex | null) // nullable ledgerIndex
            .ledgerSpecifier(org.xrpl.xrpl4j.model.client.common.LedgerSpecifier) // optional ledgerSpecifier
            .queue(boolean) // optional queue
            .signerLists(boolean) // optional signerLists
            .build();
         
        Returns:
        A new ImmutableAccountInfoRequestParams builder