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