com.activequant.domainmodel
Enum TimeFrame
java.lang.Object
java.lang.Enum<TimeFrame>
com.activequant.domainmodel.TimeFrame
- All Implemented Interfaces:
- Serializable, Comparable<TimeFrame>
public enum TimeFrame
- extends Enum<TimeFrame>
|
Method Summary |
int |
getMinutes()
|
static TimeFrame |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TimeFrame[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
EOD
public static final TimeFrame EOD
MINUTES_1
public static final TimeFrame MINUTES_1
MINUTES_5
public static final TimeFrame MINUTES_5
MINUTES_10
public static final TimeFrame MINUTES_10
MINUTES_30
public static final TimeFrame MINUTES_30
HOURS_1
public static final TimeFrame HOURS_1
RAW
public static final TimeFrame RAW
values
public static TimeFrame[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TimeFrame c : TimeFrame.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TimeFrame valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getMinutes
public int getMinutes()
Copyright © 2012 ActiveQuant GmbH. All Rights Reserved.