public enum CommandMethod extends Enum<CommandMethod> implements HasCode<CommandMethod>
| Modifier and Type | Class and Description |
|---|---|
static class |
CommandMethod.CommandMethodDeserializer |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
static CommandMethod |
of(String code)
Get an enum constant for provided
code. |
static CommandMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandMethod POST
public static final CommandMethod GET
public static CommandMethod[] values()
for (CommandMethod c : CommandMethod.values()) System.out.println(c);
public static CommandMethod 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 String getCode()
getCode in interface HasCode<CommandMethod>public static CommandMethod of(String code)
code.Copyright © 2019. All rights reserved.