com.dxfeed.event.candle
Enum CandleType
java.lang.Object
java.lang.Enum<CandleType>
com.dxfeed.event.candle.CandleType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CandleType>
public enum CandleType
- extends java.lang.Enum<CandleType>
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
TICK
public static final CandleType TICK
SECOND
public static final CandleType SECOND
MINUTE
public static final CandleType MINUTE
HOUR
public static final CandleType HOUR
DAY
public static final CandleType DAY
WEEK
public static final CandleType WEEK
MONTH
public static final CandleType MONTH
OPTEXP
public static final CandleType OPTEXP
VOLUME
public static final CandleType VOLUME
PRICE
public static final CandleType PRICE
values
public static final CandleType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(CandleType c : CandleType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static CandleType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
getPeriodIntervalMillis
public long getPeriodIntervalMillis()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Enum<CandleType>
parse
public static CandleType parse(java.lang.String s)