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.
-
-
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 final BigDecimal
targetAmount
public String
tagRegex
public SecureHash
ownerHash
-
Constructor Summary
Constructors Constructor Description TokenClaimCriteria(String tokenType, SecureHash issuerHash, MemberX500Name notaryX500Name, String symbol, BigDecimal targetAmount)
Creates a new instance of the TokenClaimCriteria 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. BigDecimal
getTargetAmount()
Gets the minimum value for the sum of getAmount for the selected tokens. 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() TokenClaimCriteria 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
-
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
-
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.
-
getTargetAmount
@NotNull() BigDecimal getTargetAmount()
Gets the minimum value for the sum of getAmount for the selected tokens.
-
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() 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.
-
-
-
-