public enum NewsSource extends Enum<NewsSource>
Enum Constant and Description |
---|
CACHE_LEVEL_1 |
CACHE_LEVEL_2 |
DB |
Modifier and Type | Method and Description |
---|---|
static NewsSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NewsSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NewsSource CACHE_LEVEL_1
public static final NewsSource CACHE_LEVEL_2
public static final NewsSource DB
public static NewsSource[] values()
for (NewsSource c : NewsSource.values()) System.out.println(c);
public static NewsSource 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 © 2024 Devexperts. All rights reserved.