Enum Constant and Description |
---|
People
People theme
|
Places
Places theme
|
Things
Things theme
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getTheme(Theme themeChoice)
Returns the current Theme
|
static java.lang.String |
getThemeNum(Theme themeChoice)
Returns the current Theme as a number
|
static Theme |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Theme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Theme People
public static final Theme Places
public static final Theme Things
public static java.lang.String getTheme(Theme themeChoice)
public static java.lang.String getThemeNum(Theme themeChoice)
public static Theme valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Theme[] values()
for (Theme c : Theme.values()) System.out.println(c);