public enum NewsCategory extends Enum<NewsCategory>
Bing3NewsDocumentSource.| Enum Constant and Description |
|---|
BUSINESS |
ENTERTAINMENT |
HEALTH |
POLITICS |
SCIENCE |
SPORTS |
US |
WORLD |
| Modifier and Type | Method and Description |
|---|---|
String |
toString() |
static NewsCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NewsCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NewsCategory BUSINESS
public static final NewsCategory ENTERTAINMENT
public static final NewsCategory HEALTH
public static final NewsCategory POLITICS
public static final NewsCategory SPORTS
public static final NewsCategory US
public static final NewsCategory WORLD
public static final NewsCategory SCIENCE
public static NewsCategory[] values()
for (NewsCategory c : NewsCategory.values()) System.out.println(c);
public static NewsCategory 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 toString()
toString in class Enum<NewsCategory>