public enum BanType extends Enum<BanType>
Enum Constant and Description |
---|
IP_BAN
A ban made on an IP.
|
USER_BAN
A ban made on a user.
|
Modifier and Type | Method and Description |
---|---|
static BanType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BanType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BanType IP_BAN
public static final BanType USER_BAN
public static BanType[] values()
for (BanType c : BanType.values()) System.out.println(c);
public static BanType 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