public static enum Transaction.Purpose extends Enum<Transaction.Purpose>
Enum Constant and Description |
---|
KEY_ROTATION
Transaction automatically created and broadcast in order to reallocate money from old to new keys.
|
UNKNOWN
Used when the purpose of a transaction is genuinely unknown.
|
USER_PAYMENT
Transaction created to satisfy a user payment request.
|
Modifier and Type | Method and Description |
---|---|
static Transaction.Purpose |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Transaction.Purpose[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Transaction.Purpose UNKNOWN
public static final Transaction.Purpose USER_PAYMENT
public static final Transaction.Purpose KEY_ROTATION
public static Transaction.Purpose[] values()
for (Transaction.Purpose c : Transaction.Purpose.values()) System.out.println(c);
public static Transaction.Purpose valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2014. All rights reserved.