public enum DetectType extends Enum<DetectType>
| Enum Constant and Description |
|---|
Abuse |
Ads |
Illegal |
Politics |
Porn |
Teenager |
Terrorism |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
int |
getType() |
void |
setName(String name) |
void |
setType(int type) |
static DetectType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DetectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DetectType Porn
public static final DetectType Terrorism
public static final DetectType Politics
public static final DetectType Ads
public static final DetectType Illegal
public static final DetectType Abuse
public static final DetectType Teenager
public static DetectType[] values()
for (DetectType c : DetectType.values()) System.out.println(c);
public static DetectType 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 int getType()
public void setType(int type)
public String getName()
public void setName(String name)
Copyright © 2023. All rights reserved.