public enum AdminCommand extends Enum<AdminCommand>
| Enum Constant and Description |
|---|
DISABLE |
ENABLE |
RESTART |
START |
STOP |
UPDATE |
| Modifier and Type | Method and Description |
|---|---|
static AdminCommand |
of(String name) |
static AdminCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdminCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdminCommand ENABLE
public static final AdminCommand DISABLE
public static final AdminCommand START
public static final AdminCommand STOP
public static final AdminCommand RESTART
public static final AdminCommand UPDATE
public static AdminCommand[] values()
for (AdminCommand c : AdminCommand.values()) System.out.println(c);
public static AdminCommand 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 AdminCommand of(String name)
Copyright © 2024 Young Monkeys. All rights reserved.