Enum KeyContexts.StakeUndoState
- java.lang.Object
-
- java.lang.Enum<KeyContexts.StakeUndoState>
-
- com.h2tcoin.takamakachain.globalContext.KeyContexts.StakeUndoState
-
- All Implemented Interfaces:
Serializable
,Comparable<KeyContexts.StakeUndoState>
- Enclosing class:
- KeyContexts
public static enum KeyContexts.StakeUndoState extends Enum<KeyContexts.StakeUndoState>
Define the status of a undo transaction.NOT_UP_TO_DATE
means that in blockchain exist already a transaction with expiration more recent than the current transaction.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CORRUPTED
INVALID
NOT_UP_TO_DATE
VALID
VALID_SYNTAX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyContexts.StakeUndoState
valueOf(String name)
Returns the enum constant of this type with the specified name.static KeyContexts.StakeUndoState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALID
public static final KeyContexts.StakeUndoState VALID
-
INVALID
public static final KeyContexts.StakeUndoState INVALID
-
NOT_UP_TO_DATE
public static final KeyContexts.StakeUndoState NOT_UP_TO_DATE
-
VALID_SYNTAX
public static final KeyContexts.StakeUndoState VALID_SYNTAX
-
CORRUPTED
public static final KeyContexts.StakeUndoState CORRUPTED
-
-
Method Detail
-
values
public static KeyContexts.StakeUndoState[] 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.StakeUndoState c : KeyContexts.StakeUndoState.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.StakeUndoState 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
-
-