Class UtxoTokenPoolKey
-
- All Implemented Interfaces:
public final class UtxoTokenPoolKey
Represents a key for a pool of similar tokens.
The full token pool key includes holding ID, token type, issue, notary and symbol. The platform provides the holding ID, notary and optional token type.
-
-
Field Summary
Fields Modifier and Type Field Description public final String
tokenType
public final SecureHash
issuerHash
public final String
symbol
-
Constructor Summary
Constructors Constructor Description UtxoTokenPoolKey(String tokenType, SecureHash issuerHash, String symbol)
Creates a new instance of the UtxoTokenPoolKey class. UtxoTokenPoolKey(SecureHash issuerHash, String symbol)
Creates a new instance of the UtxoTokenPoolKey class.
-
Method Summary
Modifier and Type Method Description String
getTokenType()
Gets the type of token within a pool, or null if no type was specified. SecureHash
getIssuerHash()
Gets the SecureHash of the issuer of the tokens in a pool. String
getSymbol()
Gets the user-defined symbol of the tokens in a pool. boolean
equals(Object obj)
Determines whether the specified object is equal to the current object. boolean
equals(@NotNull() UtxoTokenPoolKey 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
-
UtxoTokenPoolKey
UtxoTokenPoolKey(String tokenType, SecureHash issuerHash, String symbol)
Creates a new instance of the UtxoTokenPoolKey class.- Parameters:
tokenType
- The type of token within a pool.issuerHash
- The SecureHash of the issuer of the tokens in a pool.symbol
- The user-defined symbol of the tokens in a pool.
-
UtxoTokenPoolKey
UtxoTokenPoolKey(SecureHash issuerHash, String symbol)
Creates a new instance of the UtxoTokenPoolKey class.- Parameters:
issuerHash
- The SecureHash of the issuer of the tokens in a pool.symbol
- The user-defined symbol of the tokens in a pool.
-
-
Method Detail
-
getTokenType
@Nullable() String getTokenType()
Gets the type of token within a pool, or null if no type was specified.
- Returns:
Returns the type of token within a pool, or null if no type was specified.
-
getIssuerHash
@NotNull() SecureHash getIssuerHash()
Gets the SecureHash of the issuer of the tokens in a pool.
- Returns:
Returns the SecureHash of the issuer of the tokens in a pool.
-
getSymbol
@NotNull() String getSymbol()
Gets the user-defined symbol of the tokens in a pool.
- Returns:
Returns the user-defined symbol of the tokens in a pool.
-
equals
boolean equals(Object obj)
Determines whether the specified object is equal to the current object.
- Parameters:
obj
- The object to compare with the current object.- Returns:
Returns true if the specified object is equal to the current object; otherwise, false.
-
equals
boolean equals(@NotNull() UtxoTokenPoolKey other)
Determines whether the specified object is equal to the current object.
- Parameters:
other
- The Party to compare with the current object.- Returns:
Returns true if the specified Party is equal to the current object; otherwise, false.
-
hashCode
int hashCode()
Serves as the default hash function.
- Returns:
Returns a hash code for the current object.
-
-
-
-