java.lang.Objectjava.lang.Enum<NewsFilter.TimeFrame>
com.dukascopy.api.NewsFilter.TimeFrame
public static enum NewsFilter.TimeFrame
Utility enum for end date calculations
| Enum Constant Summary | |
|---|---|
LAST_10_MINUTES
|
|
LAST_30_MINUTES
|
|
LAST_HOUR
|
|
ONLINE
|
|
SPECIFIC_DATE
|
|
TODAY
|
|
| Method Summary | |
|---|---|
int |
getInterval()
|
java.util.concurrent.TimeUnit |
getTimeUnit()
|
java.lang.String |
toString()
|
static NewsFilter.TimeFrame |
valueOf(java.lang.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. |
| 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 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
| Method Detail |
|---|
public static NewsFilter.TimeFrame[] values()
for (NewsFilter.TimeFrame c : NewsFilter.TimeFrame.values()) System.out.println(c);
public static NewsFilter.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<NewsFilter.TimeFrame>