Package com.longbridge.market
Enum AhPremiumPeriod
- java.lang.Object
-
- java.lang.Enum<AhPremiumPeriod>
-
- com.longbridge.market.AhPremiumPeriod
-
- All Implemented Interfaces:
Serializable,Comparable<AhPremiumPeriod>
public enum AhPremiumPeriod extends Enum<AhPremiumPeriod>
K-line period for A/H premium data.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AhPremiumPeriodvalueOf(String name)Returns the enum constant of this type with the specified name.static AhPremiumPeriod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Min1
public static final AhPremiumPeriod Min1
1-minute
-
Min5
public static final AhPremiumPeriod Min5
5-minute
-
Min15
public static final AhPremiumPeriod Min15
15-minute
-
Min30
public static final AhPremiumPeriod Min30
30-minute
-
Min60
public static final AhPremiumPeriod Min60
60-minute
-
Day
public static final AhPremiumPeriod Day
Daily
-
Week
public static final AhPremiumPeriod Week
Weekly
-
Month
public static final AhPremiumPeriod Month
Monthly
-
Year
public static final AhPremiumPeriod Year
Yearly
-
-
Method Detail
-
values
public static AhPremiumPeriod[] 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 (AhPremiumPeriod c : AhPremiumPeriod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AhPremiumPeriod 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
-
-