Package com.xpn.xwiki.stats.impl
Enum StatsUtil.PeriodType
- java.lang.Object
-
- java.lang.Enum<StatsUtil.PeriodType>
-
- com.xpn.xwiki.stats.impl.StatsUtil.PeriodType
-
- All Implemented Interfaces:
Serializable
,Comparable<StatsUtil.PeriodType>
- Enclosing class:
- StatsUtil
public static enum StatsUtil.PeriodType extends Enum<StatsUtil.PeriodType>
The type of the period.- Since:
- 1.4M1
- Version:
- $Id: 5f076ea496b853c7595c9e6ffca5bfb66991f04e $
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StatsUtil.PeriodType
valueOf(String name)
Returns the enum constant of this type with the specified name.static StatsUtil.PeriodType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MONTH
public static final StatsUtil.PeriodType MONTH
Based on month.
-
DAY
public static final StatsUtil.PeriodType DAY
Based on day.
-
-
Method Detail
-
values
public static StatsUtil.PeriodType[] 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 (StatsUtil.PeriodType c : StatsUtil.PeriodType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatsUtil.PeriodType 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
-
-