Enum NumberItemStyle
- java.lang.Object
-
- java.lang.Enum<NumberItemStyle>
-
- org.pepstock.charba.client.intl.enums.NumberItemStyle
-
- All Implemented Interfaces:
Serializable
,Comparable<NumberItemStyle>
,Key
public enum NumberItemStyle extends Enum<NumberItemStyle> implements Key
Enumerates the possible value to set the representation of the numeric item of a date (year, day, hour, minute, second).- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NUMERIC
Numeric setting for item (e.g., 1).TWO_DIGITS
2 digits setting for item (e.g., 01).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic NumberItemStyle
valueOf(String name)
Returns the enum constant of this type with the specified name.static NumberItemStyle[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NUMERIC
public static final NumberItemStyle NUMERIC
Numeric setting for item (e.g., 1).
-
TWO_DIGITS
public static final NumberItemStyle TWO_DIGITS
2 digits setting for item (e.g., 01).
-
-
Method Detail
-
values
public static NumberItemStyle[] 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 (NumberItemStyle c : NumberItemStyle.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NumberItemStyle 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
-
-