public enum Topic extends Enum<Topic>
| Enum Constant and Description |
|---|
ADVENTURE |
CHILDRENS |
HISTORY |
ROMANTIC |
SCIENCEFICTION |
TERROR |
THRILLER |
| Modifier and Type | Method and Description |
|---|---|
String |
getString() |
String |
getTopic() |
String |
toString() |
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 SCIENCEFICTION
public static final Topic HISTORY
public static final Topic CHILDRENS
public static final Topic THRILLER
public static final Topic TERROR
public static final Topic ROMANTIC
public final String label
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 nullpublic String getTopic()
public String getString()
Copyright © 2021. All rights reserved.