Package com.longport.quote
Enum Period
- java.lang.Object
-
- java.lang.Enum<Period>
-
- com.longport.quote.Period
-
- All Implemented Interfaces:
Serializable
,Comparable<Period>
public enum Period extends Enum<Period>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Period
valueOf(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
-
Min_1
public static final Period Min_1
-
Min_2
public static final Period Min_2
-
Min_3
public static final Period Min_3
-
Min_5
public static final Period Min_5
-
Min_10
public static final Period Min_10
-
Min_15
public static final Period Min_15
-
Min_20
public static final Period Min_20
-
Min_30
public static final Period Min_30
-
Min_45
public static final Period Min_45
-
Min_60
public static final Period Min_60
-
Min_120
public static final Period Min_120
-
Min_180
public static final Period Min_180
-
Min_240
public static final Period Min_240
-
Day
public static final Period Day
-
Week
public static final Period Week
-
Month
public static final Period Month
-
Quarter
public static final Period Quarter
-
Year
public static final Period 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
-
-