Enum KeyContexts.TransactionColor
- java.lang.Object
-
- java.lang.Enum<KeyContexts.TransactionColor>
-
- com.h2tcoin.takamakachain.globalContext.KeyContexts.TransactionColor
-
- All Implemented Interfaces:
Serializable
,Comparable<KeyContexts.TransactionColor>
- Enclosing class:
- KeyContexts
public static enum KeyContexts.TransactionColor extends Enum<KeyContexts.TransactionColor>
If a transaction move only red coin isRED
, if a transaction move only green coin isGREEN
, if a transaction move both red and green coin isRED_GREEN
undefined otherwise. Coin used for pay the operation is not taken in account in this evaluation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyContexts.TransactionColor
valueOf(String name)
Returns the enum constant of this type with the specified name.static KeyContexts.TransactionColor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final KeyContexts.TransactionColor UNDEFINED
-
RED
public static final KeyContexts.TransactionColor RED
-
GREEN
public static final KeyContexts.TransactionColor GREEN
-
RED_GREEN
public static final KeyContexts.TransactionColor RED_GREEN
-
-
Method Detail
-
values
public static KeyContexts.TransactionColor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KeyContexts.TransactionColor c : KeyContexts.TransactionColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyContexts.TransactionColor valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-