Class TokenBalanceCriteria

  • All Implemented Interfaces:

    
    public final class TokenBalanceCriteria
    
                        

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

    • Constructor Detail

      • TokenBalanceCriteria

        TokenBalanceCriteria(String tokenType, SecureHash issuerHash, MemberX500Name notaryX500Name, String symbol)
        Creates a new instance of the TokenBalanceCriteria 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.
    • 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() TokenBalanceCriteria 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.