- java.lang.Object
-
- java.lang.Enum<ChartJsTimeUnit>
-
- nl.crashdata.chartjs.data.ChartJsTimeUnit
-
- All Implemented Interfaces:
Serializable,Comparable<ChartJsTimeUnit>
public enum ChartJsTimeUnit extends Enum<ChartJsTimeUnit>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChartJsTimeUnitvalueOf(String name)Returns the enum constant of this type with the specified name.static ChartJsTimeUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MILLISECOND
public static final ChartJsTimeUnit MILLISECOND
-
SECOND
public static final ChartJsTimeUnit SECOND
-
MINUTE
public static final ChartJsTimeUnit MINUTE
-
HOUR
public static final ChartJsTimeUnit HOUR
-
DAY
public static final ChartJsTimeUnit DAY
-
WEEK
public static final ChartJsTimeUnit WEEK
-
MONTH
public static final ChartJsTimeUnit MONTH
-
QUARTER
public static final ChartJsTimeUnit QUARTER
-
YEAR
public static final ChartJsTimeUnit YEAR
-
-
Method Detail
-
values
public static ChartJsTimeUnit[] 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 (ChartJsTimeUnit c : ChartJsTimeUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChartJsTimeUnit 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
-
-