public static enum ChatRoom.Affiliation extends Enum<ChatRoom.Affiliation>
| Modifier and Type | Method and Description |
|---|---|
String |
val() |
static ChatRoom.Affiliation |
valueFrom(String val) |
static ChatRoom.Affiliation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChatRoom.Affiliation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatRoom.Affiliation MEMBER
public static final ChatRoom.Affiliation ADMIN
public static final ChatRoom.Affiliation OWNER
public static final ChatRoom.Affiliation OUTCAST
public static final ChatRoom.Affiliation NONE
public static ChatRoom.Affiliation[] values()
for (ChatRoom.Affiliation c : ChatRoom.Affiliation.values()) System.out.println(c);
public static ChatRoom.Affiliation 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 String val()
public static ChatRoom.Affiliation valueFrom(String val) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2019. All rights reserved.