private static enum Main.Op extends Enum<Main.Op>
| Modifier and Type | Method and Description |
|---|---|
static Main.Op |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Main.Op[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Main.Op Exit
public static final Main.Op Encrypt
public static final Main.Op Decrypt
public static Main.Op[] values()
for (Main.Op c : Main.Op.values()) System.out.println(c);
public static Main.Op 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 null