|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TimeUnitEnum> org.otfeed.command.TimeUnitEnum
public enum TimeUnitEnum
Enumerates time units used for aggregation.
TICKS
is a special "quasi-time" unit, specifying
how many ticks to aggregate. For example, asking for
DAYS
with interval 1 will return trade quotes
aggregated during the day; MINUTES
with interval 5
will return quotes aggregated on a 5-minute basis;
TICKS
with interval 10 will return quotes
aggregated on a 10-tick basis.
See also HistDataCommand
.
Enum Constant Summary | |
---|---|
DAYS
Days |
|
HOURS
Hours |
|
MINUTES
Minutes |
|
MONTHS
Months |
|
TICKS
Ticks |
|
WEEKS
Weeks |
|
YEARS
Years |
Field Summary | |
---|---|
int |
code
|
Method Summary | |
---|---|
static TimeUnitEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TimeUnitEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TimeUnitEnum TICKS
public static final TimeUnitEnum MINUTES
public static final TimeUnitEnum HOURS
public static final TimeUnitEnum DAYS
public static final TimeUnitEnum WEEKS
public static final TimeUnitEnum MONTHS
public static final TimeUnitEnum YEARS
Field Detail |
---|
public final int code
Method Detail |
---|
public static final TimeUnitEnum[] values()
for(TimeUnitEnum c : TimeUnitEnum.values()) System.out.println(c);
public static TimeUnitEnum 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |