public enum ThemeType extends Enum<ThemeType>
| Enum Constant and Description |
|---|
ADVENTURE |
CHILDREN |
HISTORY |
HORROR |
HUMOR |
MYSTERY |
ROMANCE |
SCIENCE_FICTION |
SUSPENSE |
| Modifier and Type | Method and Description |
|---|---|
static ThemeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThemeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThemeType ADVENTURE
public static final ThemeType SCIENCE_FICTION
public static final ThemeType HISTORY
public static final ThemeType CHILDREN
public static final ThemeType ROMANCE
public static final ThemeType SUSPENSE
public static final ThemeType HORROR
public static final ThemeType HUMOR
public static final ThemeType MYSTERY
public static ThemeType[] values()
for (ThemeType c : ThemeType.values()) System.out.println(c);
public static ThemeType 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 nullCopyright © 2025. All rights reserved.