public static enum NewsFilter.TimeFrame extends Enum<NewsFilter.TimeFrame> implements NewsFilter.ITimeFrame
Enum Constant and Description |
---|
LAST_10_MINUTES |
LAST_30_MINUTES |
LAST_HOUR |
ONLINE |
SPECIFIC_DATE |
TODAY |
Modifier and Type | Method and Description |
---|---|
int |
getInterval() |
TimeUnit |
getTimeUnit() |
String |
toString() |
static NewsFilter.TimeFrame |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NewsFilter.TimeFrame[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NewsFilter.TimeFrame ONLINE
public static final NewsFilter.TimeFrame LAST_10_MINUTES
public static final NewsFilter.TimeFrame LAST_30_MINUTES
public static final NewsFilter.TimeFrame LAST_HOUR
public static final NewsFilter.TimeFrame TODAY
public static final NewsFilter.TimeFrame SPECIFIC_DATE
public static NewsFilter.TimeFrame[] values()
for (NewsFilter.TimeFrame c : NewsFilter.TimeFrame.values()) System.out.println(c);
public static NewsFilter.TimeFrame 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 int getInterval()
getInterval
in interface NewsFilter.ITimeFrame
public TimeUnit getTimeUnit()
getTimeUnit
in interface NewsFilter.ITimeFrame
public String toString()
toString
in class Enum<NewsFilter.TimeFrame>
Copyright © 2016. All rights reserved.