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