Package nxt.account
Enum Class HoldingType
- All Implemented Interfaces:
Serializable,Comparable<HoldingType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddToBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount) abstract voidaddToBalanceAndUnconfirmedBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount) abstract voidaddToUnconfirmedBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount) static HoldingTypeget(byte code) abstract longgetBalance(Account account, long holdingId) bytegetCode()abstract intgetDecimals(long holdingId) abstract longgetUnconfirmedBalance(Account account, long holdingId) static HoldingTypeReturns the enum constant of this class with the specified name.static HoldingType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COIN
-
ASSET
-
CURRENCY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
get
-
getCode
public byte getCode() -
getDecimals
public abstract int getDecimals(long holdingId) -
getBalance
-
getUnconfirmedBalance
-
addToBalance
public abstract void addToBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount) -
addToUnconfirmedBalance
public abstract void addToUnconfirmedBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount) -
addToBalanceAndUnconfirmedBalance
public abstract void addToBalanceAndUnconfirmedBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount)
-