public static enum ChatLog.Rating extends Enum<ChatLog.Rating>
Modifier and Type | Method and Description |
---|---|
static ChatLog.Rating |
getRating(String value)
Gets the equivalent enum rating of the value passed as parameter
|
String |
getValue()
Gets the value of this enum
|
static ChatLog.Rating |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChatLog.Rating[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChatLog.Rating GOOD
public static final ChatLog.Rating BAD
public static final ChatLog.Rating UNRATED
public static final ChatLog.Rating UNKNOWN
public static ChatLog.Rating[] values()
for (ChatLog.Rating c : ChatLog.Rating.values()) System.out.println(c);
public static ChatLog.Rating 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 getValue()
@NonNull public static ChatLog.Rating getRating(String value)
value
- value to interpretUNKNOWN
if not found