public static enum Wallet.BalanceType extends java.lang.Enum<Wallet.BalanceType>
It's possible to calculate a wallets balance from multiple points of view. This enum selects which getBalance() should use.
Consider a real-world example: you buy a snack costing $5 but you only have a $10 bill. At the start you have $10 viewed from every possible angle. After you order the snack you hand over your $10 bill. From the perspective of your wallet you have zero dollars (AVAILABLE). But you know in a few seconds the shopkeeper will give you back $5 change so most people in practice would say they have $5 (ESTIMATED).
|Enum Constant and Description|
Balance that can be safely used to create new spends.
Balance calculated assuming all pending transactions are in fact included into the best chain by miners.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final Wallet.BalanceType AVAILABLE
public static Wallet.BalanceType 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 name
java.lang.NullPointerException- if the argument is null
public static Wallet.BalanceType values()
for (Wallet.BalanceType c : Wallet.BalanceType.values()) System.out.println(c);