Class TokenClaimCriteria

  • All Implemented Interfaces:

    
    public final class TokenClaimCriteria
    
                        

    Represents a description of the selection criteria for a token selection query using the TokenSelection API.

    • Constructor Detail

      • TokenClaimCriteria

        TokenClaimCriteria(String tokenType, SecureHash issuerHash, MemberX500Name notaryX500Name, String symbol, BigDecimal targetAmount)
        Creates a new instance of the TokenClaimCriteria class.
        Parameters:
        tokenType - The type of tokens to be selected.
        issuerHash - The SecureHash of the issuer of tokens to be selected.
        notaryX500Name - The MemberX500Name of the notary of the tokens to be selected.
        symbol - The symbol of the notary of tokens to be selected.
        targetAmount - The minimum value for the sum of getAmount for the selected tokens.
    • Method Detail

      • getSymbol

        @NotNull() String getSymbol()

        Gets the symbol of the notary of tokens to be selected.

      • getTagRegex

        @Nullable() String getTagRegex()

        Gets an optional regular expression to match against the getTag field, or null to match all tags.

      • setTagRegex

         void setTagRegex(@Nullable() String tagRegex)

        Sets an optional regular expression to match against the getTag field, or null to match all tags.

      • setOwnerHash

         void setOwnerHash(@Nullable() SecureHash ownerHash)

        Sets an optional owner SecureHash of the tokens to be selected, or null to match all owners.

      • equals

         boolean equals(@Nullable() Object obj)

        Determines whether the specified object is equal to the current object.

        Parameters:
        obj - The object to compare with the current object.
      • equals

         boolean equals(@NotNull() TokenClaimCriteria other)

        Determines whether the specified object is equal to the current object.

        Parameters:
        other - The Party to compare with the current object.
      • hashCode

         int hashCode()

        Serves as the default hash function.

      • toString

         String toString()

        Returns a string that represents the current object.