| Enum Constant and Description |
|---|
BY_ADDRESS |
BY_NAME |
| Modifier and Type | Method and Description |
|---|---|
static BanMode |
fromId(int id) |
static BanMode |
fromString(java.lang.String id) |
static BanMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BanMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BanMode BY_ADDRESS
public static final BanMode BY_NAME
public static BanMode[] values()
for (BanMode c : BanMode.values()) System.out.println(c);
public static BanMode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static BanMode fromId(int id)
public static BanMode fromString(java.lang.String id)