Package org.exoplatform.kudos.model
Enum KudosPeriodType
- java.lang.Object
-
- java.lang.Enum<KudosPeriodType>
-
- org.exoplatform.kudos.model.KudosPeriodType
-
- All Implemented Interfaces:
Serializable,Comparable<KudosPeriodType>
public enum KudosPeriodType extends Enum<KudosPeriodType>
-
-
Field Summary
Fields Modifier and Type Field Description static KudosPeriodTypeDEFAULT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KudosPeriodgetPeriodOfTime(LocalDateTime localDateTime)static KudosPeriodTypevalueOf(String name)Returns the enum constant of this type with the specified name.static KudosPeriodType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WEEK
public static final KudosPeriodType WEEK
-
MONTH
public static final KudosPeriodType MONTH
-
QUARTER
public static final KudosPeriodType QUARTER
-
SEMESTER
public static final KudosPeriodType SEMESTER
-
YEAR
public static final KudosPeriodType YEAR
-
-
Field Detail
-
DEFAULT
public static final KudosPeriodType DEFAULT
-
-
Method Detail
-
values
public static KudosPeriodType[] 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 (KudosPeriodType c : KudosPeriodType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KudosPeriodType 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
-
getPeriodOfTime
public KudosPeriod getPeriodOfTime(LocalDateTime localDateTime)
-
-