Class UtxoToken
-
- All Implemented Interfaces:
public final class UtxoToken
Represents the structure of a token produced by an instance of UtxoLedgerTokenStateObserver.
-
-
Field Summary
Fields Modifier and Type Field Description public final UtxoTokenPoolKey
poolKey
public final BigDecimal
amount
public final UtxoTokenFilterFields
filterFields
-
Constructor Summary
Constructors Constructor Description UtxoToken(UtxoTokenPoolKey poolKey, BigDecimal amount, UtxoTokenFilterFields filterFields)
Creates a new instance of the UtxoToken class.
-
Method Summary
Modifier and Type Method Description UtxoTokenPoolKey
getPoolKey()
Gets the key of the token pool that this token belongs to. BigDecimal
getAmount()
Gets the amount represented by this token. UtxoTokenFilterFields
getFilterFields()
Gets the optional fields available to the TokenSelection API TokenClaimCriteria. boolean
equals(@Nullable() Object obj)
Determines whether the specified object is equal to the current object. boolean
equals(@NotNull() UtxoToken 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
-
UtxoToken
UtxoToken(UtxoTokenPoolKey poolKey, BigDecimal amount, UtxoTokenFilterFields filterFields)
Creates a new instance of the UtxoToken class.- Parameters:
poolKey
- The key of the token pool that this token belongs to.amount
- The amount represented by this token.filterFields
- Optional fields available to the TokenSelection API TokenClaimCriteria.
-
-
Method Detail
-
getPoolKey
@NotNull() UtxoTokenPoolKey getPoolKey()
Gets the key of the token pool that this token belongs to.
-
getAmount
@NotNull() BigDecimal getAmount()
Gets the amount represented by this token.
-
getFilterFields
@Nullable() UtxoTokenFilterFields getFilterFields()
Gets the optional fields available to the TokenSelection API TokenClaimCriteria.
-
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() UtxoToken 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.
-
-
-
-