public enum OperationType extends java.lang.Enum<OperationType>
| Enum Constant and Description |
|---|
BuyCoin |
CreateCoin |
DeclareCandidacy |
Delegate |
RedeemCheck |
SellAllCoins |
SellCoin |
SendCoin |
SetCandidateOffline |
SetCandidateOnline |
Unbound |
| Modifier and Type | Field and Description |
|---|---|
static java.math.BigDecimal |
FEE_BASE |
| Modifier and Type | Method and Description |
|---|---|
static OperationType |
findByOpClass(java.lang.Class<? extends Operation> opClass) |
static OperationType |
findByValue(java.math.BigInteger type) |
java.math.BigDecimal |
getFee() |
java.math.BigDecimal |
getFeeBase() |
java.lang.Class<? extends Operation> |
getOpClass() |
java.math.BigInteger |
getValue() |
int |
getValueInt() |
static OperationType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OperationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperationType SendCoin
public static final OperationType SellCoin
public static final OperationType SellAllCoins
public static final OperationType BuyCoin
public static final OperationType CreateCoin
public static final OperationType DeclareCandidacy
public static final OperationType Delegate
public static final OperationType Unbound
public static final OperationType RedeemCheck
public static final OperationType SetCandidateOnline
public static final OperationType SetCandidateOffline
public static OperationType[] values()
for (OperationType c : OperationType.values()) System.out.println(c);
public static OperationType 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 OperationType findByValue(java.math.BigInteger type)
public static OperationType findByOpClass(java.lang.Class<? extends Operation> opClass)
public java.math.BigDecimal getFeeBase()
public java.math.BigDecimal getFee()
public java.lang.Class<? extends Operation> getOpClass()
public java.math.BigInteger getValue()
public int getValueInt()