java.lang.Objectjava.lang.Enum<CalendarFilter.TimeFrame>
com.dukascopy.api.CalendarFilter.TimeFrame
public static enum CalendarFilter.TimeFrame
Utility enum for end date calculations
| Enum Constant Summary | |
|---|---|
DAY
|
|
WEEK
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final CalendarFilter.TimeFrame DAY
public static final CalendarFilter.TimeFrame WEEK
| Method Detail |
|---|
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 name
java.lang.NullPointerException - if the argument is nullpublic int getInterval()
getInterval in interface NewsFilter.ITimeFramepublic java.util.concurrent.TimeUnit getTimeUnit()
getTimeUnit in interface NewsFilter.ITimeFramepublic java.lang.String toString()
toString in class java.lang.Enum<CalendarFilter.TimeFrame>