public enum HoldingType extends java.lang.Enum<HoldingType>
Modifier and Type | Method and Description |
---|---|
abstract void |
addToBalance(Account account,
AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long holdingId,
long amount) |
abstract void |
addToBalanceAndUnconfirmedBalance(Account account,
AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long holdingId,
long amount) |
abstract void |
addToUnconfirmedBalance(Account account,
AccountLedger.LedgerEvent event,
AccountLedger.LedgerEventId eventId,
long holdingId,
long amount) |
static HoldingType |
get(byte code) |
abstract long |
getBalance(Account account,
long holdingId) |
byte |
getCode() |
abstract int |
getDecimals(long holdingId) |
abstract long |
getUnconfirmedBalance(Account account,
long holdingId) |
static HoldingType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HoldingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HoldingType COIN
public static final HoldingType ASSET
public static final HoldingType CURRENCY
public static HoldingType[] values()
for (HoldingType c : HoldingType.values()) System.out.println(c);
public static HoldingType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static HoldingType get(byte code)
public byte getCode()
public abstract int getDecimals(long holdingId)
public abstract long getBalance(Account account, long holdingId)
public abstract long getUnconfirmedBalance(Account account, long holdingId)
public abstract void addToBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount)
public abstract void addToUnconfirmedBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount)
public abstract void addToBalanceAndUnconfirmedBalance(Account account, AccountLedger.LedgerEvent event, AccountLedger.LedgerEventId eventId, long holdingId, long amount)