org.jquantlib.time
Enum Frequency
- java.lang.Object
-
- java.lang.Enum<Frequency>
-
- org.jquantlib.time.Frequency
-
-
Enum Constant Summary
Enum Constants Enum Constant and Description Annualonce a yearBimonthlyevery second monthBiweeklyevery second weekDailyonce a dayEveryFourthMonthevery fourth monthEveryFourthWeekevery fourth weekMonthlyonce a monthNoFrequencynull frequencyOnceonly onceOtherFrequencysome other unknown frequencyQuarterlyevery third monthSemiannualtwice a yearWeeklyonce a week
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description inttoInteger()static FrequencyvalueOf(int value)static FrequencyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Frequency[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NoFrequency
public static final Frequency NoFrequency
null frequency
-
Once
public static final Frequency Once
only once
-
Annual
public static final Frequency Annual
once a year
-
Semiannual
public static final Frequency Semiannual
twice a year
-
EveryFourthMonth
public static final Frequency EveryFourthMonth
every fourth month
-
Quarterly
public static final Frequency Quarterly
every third month
-
Bimonthly
public static final Frequency Bimonthly
every second month
-
Monthly
public static final Frequency Monthly
once a month
-
EveryFourthWeek
public static final Frequency EveryFourthWeek
every fourth week
-
Biweekly
public static final Frequency Biweekly
every second week
-
Weekly
public static final Frequency Weekly
once a week
-
Daily
public static final Frequency Daily
once a day
-
OtherFrequency
public static final Frequency OtherFrequency
some other unknown frequency
-
-
Method Detail
-
values
public static Frequency[] 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 (Frequency c : Frequency.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Frequency 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 namejava.lang.NullPointerException- if the argument is null
-
valueOf
public static Frequency valueOf(int value)
-
toInteger
public int toInteger()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG