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.
-
-
Field Summary
Fields Modifier and Type Field Description public final String
tokenType
public final SecureHash
issuerHash
public final MemberX500Name
notaryX500Name
public final String
symbol
public String
tagRegex
public SecureHash
ownerHash
-
Constructor Summary
Constructors Constructor Description TokenBalanceCriteria(String tokenType, SecureHash issuerHash, MemberX500Name notaryX500Name, String symbol)
Creates a new instance of the TokenBalanceCriteria class.
-
Method Summary
Modifier and Type Method Description String
getTokenType()
Gets the type of tokens to be selected. SecureHash
getIssuerHash()
Gets the SecureHash of the issuer of tokens to be selected. MemberX500Name
getNotaryX500Name()
Gets the MemberX500Name of the notary of the tokens to be selected. String
getSymbol()
Gets the symbol of the notary of tokens to be selected. String
getTagRegex()
Gets an optional regular expression to match against the getTag field, or null to match all tags. void
setTagRegex(@Nullable() String tagRegex)
Sets an optional regular expression to match against the getTag field, or null to match all tags. SecureHash
getOwnerHash()
Gets an optional owner SecureHash of the tokens to be selected, or null to match all owners. void
setOwnerHash(@Nullable() SecureHash ownerHash)
Sets an optional owner SecureHash of the tokens to be selected, or null to match all owners. boolean
equals(@Nullable() Object obj)
Determines whether the specified object is equal to the current object. boolean
equals(@NotNull() TokenBalanceCriteria other)
Determines whether the specified object is equal to the current object. int
hashCode()
Serves as the default hash function. String
toString()
Returns a string that represents the current object. -
-
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
-
getTokenType
@NotNull() String getTokenType()
Gets the type of tokens to be selected.
-
getIssuerHash
@NotNull() SecureHash getIssuerHash()
Gets the SecureHash of the issuer of tokens to be selected.
-
getNotaryX500Name
@NotNull() MemberX500Name getNotaryX500Name()
Gets the MemberX500Name of the notary of the 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.
-
getOwnerHash
@Nullable() SecureHash getOwnerHash()
Gets an optional owner SecureHash of the tokens to be selected, or null to match all owners.
-
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.
-
-
-
-