Enum KeyContexts.QueryType
- java.lang.Object
-
- java.lang.Enum<KeyContexts.QueryType>
-
- com.h2tcoin.takamakachain.globalContext.KeyContexts.QueryType
-
- All Implemented Interfaces:
Serializable
,Comparable<KeyContexts.QueryType>
- Enclosing class:
- KeyContexts
public static enum KeyContexts.QueryType extends Enum<KeyContexts.QueryType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_SEARCH
search for the indicated block and return previousBlock and blockHash of the next oneGET_BALANCE
get the balance of a walletGET_CHAIN_INFO
request a chain info blockLOAD_BLOCK
pass a block to the current chainSTAKE_BETS
get the stake bets of a walletUNDEFINED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyContexts.QueryType
valueOf(String name)
Returns the enum constant of this type with the specified name.static KeyContexts.QueryType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET_BALANCE
public static final KeyContexts.QueryType GET_BALANCE
get the balance of a wallet
-
STAKE_BETS
public static final KeyContexts.QueryType STAKE_BETS
get the stake bets of a wallet
-
UNDEFINED
public static final KeyContexts.QueryType UNDEFINED
-
LOAD_BLOCK
public static final KeyContexts.QueryType LOAD_BLOCK
pass a block to the current chain
-
GET_CHAIN_INFO
public static final KeyContexts.QueryType GET_CHAIN_INFO
request a chain info block
-
BLOCK_SEARCH
public static final KeyContexts.QueryType BLOCK_SEARCH
search for the indicated block and return previousBlock and blockHash of the next one
-
-
Method Detail
-
values
public static KeyContexts.QueryType[] 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.QueryType c : KeyContexts.QueryType.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.QueryType 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
-
-