public static enum CalendarFilter.TimeFrame extends java.lang.Enum<CalendarFilter.TimeFrame> implements NewsFilter.ITimeFrame
Modifier and Type | Method and Description |
---|---|
int |
getInterval() |
java.util.concurrent.TimeUnit |
getTimeUnit() |
java.lang.String |
toString() |
static CalendarFilter.TimeFrame |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getInterval()
getInterval
in interface NewsFilter.ITimeFrame
public java.util.concurrent.TimeUnit getTimeUnit()
getTimeUnit
in interface NewsFilter.ITimeFrame
public java.lang.String toString()
toString
in class java.lang.Enum<CalendarFilter.TimeFrame>
Copyright © 2024. All rights reserved.