Enum PredefinedGranularity
- java.lang.Object
-
- java.lang.Enum<PredefinedGranularity>
-
- in.zapr.druid.druidry.granularity.PredefinedGranularity
-
- All Implemented Interfaces:
Serializable,Comparable<PredefinedGranularity>
public enum PredefinedGranularity extends Enum<PredefinedGranularity>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPredefinedGranularityString()static PredefinedGranularityvalueOf(String name)Returns the enum constant of this type with the specified name.static PredefinedGranularity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final PredefinedGranularity NONE
-
ALL
public static final PredefinedGranularity ALL
-
SECOND
public static final PredefinedGranularity SECOND
-
MINUTE
public static final PredefinedGranularity MINUTE
-
FIFTEEN_MINUTE
public static final PredefinedGranularity FIFTEEN_MINUTE
-
THIRTY_MINUTE
public static final PredefinedGranularity THIRTY_MINUTE
-
HOUR
public static final PredefinedGranularity HOUR
-
DAY
public static final PredefinedGranularity DAY
-
WEEK
public static final PredefinedGranularity WEEK
-
MONTH
public static final PredefinedGranularity MONTH
-
QUARTER
public static final PredefinedGranularity QUARTER
-
YEAR
public static final PredefinedGranularity YEAR
-
-
Method Detail
-
values
public static PredefinedGranularity[] 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 (PredefinedGranularity c : PredefinedGranularity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PredefinedGranularity 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
-
getPredefinedGranularityString
public String getPredefinedGranularityString()
-
-