com.xpn.xwiki.stats.impl
Enum StatsUtil.PeriodType

java.lang.Object
  extended by java.lang.Enum<StatsUtil.PeriodType>
      extended by 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: eb5daed1900768bb567695307fc322db1e91749f $

Enum Constant Summary
DAY
          Based on day.
MONTH
          Based on month.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null


Copyright © 2004–2014 XWiki. All rights reserved.