public enum RestrictDirectMessage extends Enum<RestrictDirectMessage> implements HasCode<RestrictDirectMessage>
| Modifier and Type | Class and Description |
|---|---|
static class |
RestrictDirectMessage.RestrictDirectMessageDeserializer |
| Modifier and Type | Method and Description |
|---|---|
String |
getCode() |
static RestrictDirectMessage |
of(String code) |
static RestrictDirectMessage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RestrictDirectMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RestrictDirectMessage ANY
public static final RestrictDirectMessage TEAM
public static RestrictDirectMessage[] values()
for (RestrictDirectMessage c : RestrictDirectMessage.values()) System.out.println(c);
public static RestrictDirectMessage 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 static RestrictDirectMessage of(String code)
public String getCode()
getCode in interface HasCode<RestrictDirectMessage>Copyright © 2019. All rights reserved.