Package network.oxalis.statistics.api
Enum StatisticsGranularity
- java.lang.Object
-
- java.lang.Enum<StatisticsGranularity>
-
- network.oxalis.statistics.api.StatisticsGranularity
-
- All Implemented Interfaces:
Serializable,Comparable<StatisticsGranularity>
public enum StatisticsGranularity extends Enum<StatisticsGranularity>
Represents granularity of statistics data.- Author:
- steinar Date: 26.03.13 Time: 09:17
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAbbreviation()static StatisticsGranularityvalueForAbbreviation(String abbreviation)static StatisticsGranularityvalueOf(String name)Returns the enum constant of this type with the specified name.static StatisticsGranularity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YEAR
public static final StatisticsGranularity YEAR
-
MONTH
public static final StatisticsGranularity MONTH
-
DAY
public static final StatisticsGranularity DAY
-
HOUR
public static final StatisticsGranularity HOUR
-
-
Method Detail
-
values
public static StatisticsGranularity[] 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 (StatisticsGranularity c : StatisticsGranularity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatisticsGranularity 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
-
getAbbreviation
public String getAbbreviation()
-
valueForAbbreviation
public static StatisticsGranularity valueForAbbreviation(String abbreviation)
-
-