Enum DayCountInterval
- All Implemented Interfaces:
Serializable,Comparable<DayCountInterval>,java.lang.constant.Constable
Interval to be taken into account by a Recommendation Algorithm.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DayCountIntervalfromString(String value) Tries to match the given string to an actualDayCountIntervalenum valuegetValue()static DayCountIntervalReturns the enum constant of this type with the specified name.static DayCountInterval[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
ONE_DAY
-
TWO_DAYS
-
ONE_WEEK
-
TWO_WEEKS
-
ONE_MONTH
-
TWO_MONTHS
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getValue
-
fromString
Tries to match the given string to an actualDayCountIntervalenum value- Parameters:
value- String representing the day conut interval- Returns:
- a
DayCountIntervalobject if the match is successful or null if no match is found
-