public static enum LogEntry.Type extends Enum<LogEntry.Type>
LogEntry.| Modifier and Type | Method and Description |
|---|---|
char |
getCode() |
static @NonNull LogEntry.Type |
parse(String type)
Parses a
LogEntry.Type from a string. |
static @NonNull LogEntry.Type |
valueOf(char code)
Returns a
LogEntry.Type by its code. |
static LogEntry.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogEntry.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogEntry.Type USER
public static final LogEntry.Type GROUP
public static final LogEntry.Type TRACK
public static LogEntry.Type[] values()
for (LogEntry.Type c : LogEntry.Type.values()) System.out.println(c);
public static LogEntry.Type 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 @NonNull LogEntry.Type parse(String type)
LogEntry.Type from a string.type - the stringIllegalArgumentException - if a type could not be parsedpublic static @NonNull LogEntry.Type valueOf(char code)
LogEntry.Type by its code.code - the code - see getCode().IllegalArgumentException - if a type could not be resolvedpublic char getCode()