public enum JSONRPC2ParamsType extends Enum<JSONRPC2ParamsType>
| Enum Constant and Description |
|---|
ARRAYPositional parameters, packed as a JSON array. |
NO_PARAMSNo parameters. |
OBJECTNamed parameters, packed as a JSON object. |
| Modifier and Type | Method and Description |
|---|---|
static JSONRPC2ParamsType | valueOf(String name)Returns the enum constant of this type with the specified name. |
static JSONRPC2ParamsType[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. |
public static final JSONRPC2ParamsType ARRAY
public static final JSONRPC2ParamsType NO_PARAMS
public static final JSONRPC2ParamsType OBJECT
public static JSONRPC2ParamsType 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 nullpublic static JSONRPC2ParamsType[] values()
for (JSONRPC2ParamsType c : JSONRPC2ParamsType.values()) System.out.println(c);