Interface PlayerBalanceSnapshot
public interface PlayerBalanceSnapshot
Represents a snapshot of a player's balance for various currencies.
-
Method Summary
Modifier and TypeMethodDescription@Nullable BigDecimalGet the amount of a given currency.Get all that have been fetched.getDisplayedAmount(Currency currency) Get the displayed amount of a given currency.getPlainAmount(Currency currency) Get the plain amount of a given currency.booleanhasCurrency(Currency currency) Check whether a given currency has been fetched.
-
Method Details
-
getCurrencies
Collection<Currency> getCurrencies()Get all that have been fetched.- Returns:
- The currencies
-
hasCurrency
Check whether a given currency has been fetched.- Parameters:
currency- The currency- Returns:
trueif fetched,falseotherwise
-
getAmount
Get the amount of a given currency.- Parameters:
currency- The currency- Returns:
- The amount or
nullif not fetched
-
getDisplayedAmount
Get the displayed amount of a given currency.- Parameters:
currency- The currency- Returns:
- The displayed amount or
nullif not fetched - See Also:
-
getPlainAmount
Get the plain amount of a given currency.- Parameters:
currency- The currency- Returns:
- The plain amount or
nullif not fetched - See Also:
-