Package com.longbridge.quote
Enum Period
- java.lang.Object
-
- java.lang.Enum<Period>
-
- com.longbridge.quote.Period
-
- All Implemented Interfaces:
Serializable,Comparable<Period>
public enum Period extends Enum<Period>
Candlestick period
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DayOne dayMin_1One minuteMin_10Ten minutesMin_120One hundred and twenty minutesMin_15Fifteen minutesMin_180One hundred and eighty minutesMin_2Two minutesMin_20Twenty minutesMin_240Two hundred and forty minutesMin_3Three minutesMin_30Thirty minutesMin_45Forty-five minutesMin_5Five minutesMin_60Sixty minutesMonthOne monthQuarterOne quarterUnknownUnknownWeekOne weekYearOne year
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PeriodvalueOf(String name)Returns the enum constant of this type with the specified name.static Period[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Unknown
public static final Period Unknown
Unknown
-
Min_1
public static final Period Min_1
One minute
-
Min_2
public static final Period Min_2
Two minutes
-
Min_3
public static final Period Min_3
Three minutes
-
Min_5
public static final Period Min_5
Five minutes
-
Min_10
public static final Period Min_10
Ten minutes
-
Min_15
public static final Period Min_15
Fifteen minutes
-
Min_20
public static final Period Min_20
Twenty minutes
-
Min_30
public static final Period Min_30
Thirty minutes
-
Min_45
public static final Period Min_45
Forty-five minutes
-
Min_60
public static final Period Min_60
Sixty minutes
-
Min_120
public static final Period Min_120
One hundred and twenty minutes
-
Min_180
public static final Period Min_180
One hundred and eighty minutes
-
Min_240
public static final Period Min_240
Two hundred and forty minutes
-
Day
public static final Period Day
One day
-
Week
public static final Period Week
One week
-
Month
public static final Period Month
One month
-
Quarter
public static final Period Quarter
One quarter
-
Year
public static final Period Year
One year
-
-
Method Detail
-
values
public static Period[] 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 (Period c : Period.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Period 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 nameNullPointerException- if the argument is null
-
-