我有这样的枚举
public enum People {
OUT("People out"),
IN("People in");
private final String name;
// **StageName**(String name) {
People(String name) {
this.name = name;
}
public String getName() {
return name;
}
}
我想给Enum类型一个值,例如:
People.getEnumValueOf("People out")
这应该返回枚举People.OUT
我该怎么做?