public enum GenreType extends Enum<GenreType>
| Enum Constant and Description |
|---|
POETRY |
SHORT_STORY |
TALE |
| Modifier and Type | Method and Description |
|---|---|
static GenreType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GenreType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GenreType TALE
public static final GenreType POETRY
public static final GenreType SHORT_STORY
public static GenreType[] values()
for (GenreType c : GenreType.values()) System.out.println(c);
public static GenreType 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.