public static enum NewsAttributes.NewsGenre extends Enum<NewsAttributes.NewsGenre>
Enum Constant and Description |
---|
Blog |
OpEd |
Opinion |
PressRelease |
Satire |
UserGenerated |
Modifier and Type | Method and Description |
---|---|
static NewsAttributes.NewsGenre |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NewsAttributes.NewsGenre[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NewsAttributes.NewsGenre Blog
public static final NewsAttributes.NewsGenre OpEd
public static final NewsAttributes.NewsGenre Opinion
public static final NewsAttributes.NewsGenre PressRelease
public static final NewsAttributes.NewsGenre Satire
public static final NewsAttributes.NewsGenre UserGenerated
public static NewsAttributes.NewsGenre[] values()
for (NewsAttributes.NewsGenre c : NewsAttributes.NewsGenre.values()) System.out.println(c);
public static NewsAttributes.NewsGenre 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 © 2009–2021 Crawler-Commons. All rights reserved.