Enum FormatPartType
- java.lang.Object
-
- java.lang.Enum<FormatPartType>
-
- org.pepstock.charba.client.intl.enums.FormatPartType
-
- All Implemented Interfaces:
Serializable
,Comparable<FormatPartType>
,Key
public enum FormatPartType extends Enum<FormatPartType> implements Key
Enumerates the possible types of aFormatPart
can have.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CURRENCY
The currency string, such as the symbols "$" and "€" or the name "Dollar", "Euro" depending on how currencyDisplay is specified.DAY
The string used for the day, for example "17".DAY_PERIOD
The string used for the day period, for example, "AM", "PM", "in the morning", or "noon".DECIMAL
The decimal separator string (".").ERA
The string used for the era, for example "BC" or "AD".FRACTION
The fraction number.FRACTIONAL_SECOND
The string used for the fractional seconds, for example "0" or "00" or "000".GROUP
The group separator string (",").HOUR
The string used for the hour, for example "3" or "03".INFINITY
The Infinity string ("∞").INTEGER
The integer number.LITERAL
Any literal strings or whitespace in the formatted number or the string used for separating date and time values, for example "/", ",", "o'clock", "de", etc.MINUS_SIGN
The minus sign string ("-").MINUTE
The string used for the minute, for example "00".MONTH
The string used for the month, for example "12".NAN
TheDouble.NaN
string ("NaN").PERCENT_SIGN
The percent sign string ("%").PLUS_SIGN
The plus sign string ("+").RELATED_YEAR
The string used for the related 4-digit Gregorian year, in the event that the calendar's representation would be a yearName instead of a year, for example "2019".SECOND
The string used for the second, for example "07" or "42".TIME_ZONE_NAME
The string used for the name of the time zone, for example "UTC".UNIT
The unit string.UNKNOWN
Unknown token.
This is an add-on of Charba implementation.WEEK_DAY
The string used for the weekday, for example "M", "Monday", or "Montag".YEAR
The string used for the year, for example "2012" or "96".YEAR_NAME
The string used for the yearName in relevant contexts, for example "geng-zi"
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic FormatPartType
valueOf(String name)
Returns the enum constant of this type with the specified name.static FormatPartType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CURRENCY
public static final FormatPartType CURRENCY
The currency string, such as the symbols "$" and "€" or the name "Dollar", "Euro" depending on how currencyDisplay is specified.
-
DECIMAL
public static final FormatPartType DECIMAL
The decimal separator string (".").
-
FRACTION
public static final FormatPartType FRACTION
The fraction number.
-
GROUP
public static final FormatPartType GROUP
The group separator string (",").
-
INFINITY
public static final FormatPartType INFINITY
The Infinity string ("∞").
-
INTEGER
public static final FormatPartType INTEGER
The integer number.
-
LITERAL
public static final FormatPartType LITERAL
Any literal strings or whitespace in the formatted number or the string used for separating date and time values, for example "/", ",", "o'clock", "de", etc.
-
MINUS_SIGN
public static final FormatPartType MINUS_SIGN
The minus sign string ("-").
-
NAN
public static final FormatPartType NAN
TheDouble.NaN
string ("NaN").
-
PLUS_SIGN
public static final FormatPartType PLUS_SIGN
The plus sign string ("+").
-
PERCENT_SIGN
public static final FormatPartType PERCENT_SIGN
The percent sign string ("%").
-
UNIT
public static final FormatPartType UNIT
The unit string.
-
DAY
public static final FormatPartType DAY
The string used for the day, for example "17".
-
DAY_PERIOD
public static final FormatPartType DAY_PERIOD
The string used for the day period, for example, "AM", "PM", "in the morning", or "noon".
-
ERA
public static final FormatPartType ERA
The string used for the era, for example "BC" or "AD".
-
FRACTIONAL_SECOND
public static final FormatPartType FRACTIONAL_SECOND
The string used for the fractional seconds, for example "0" or "00" or "000".
-
HOUR
public static final FormatPartType HOUR
The string used for the hour, for example "3" or "03".
-
MINUTE
public static final FormatPartType MINUTE
The string used for the minute, for example "00".
-
MONTH
public static final FormatPartType MONTH
The string used for the month, for example "12".
-
RELATED_YEAR
public static final FormatPartType RELATED_YEAR
The string used for the related 4-digit Gregorian year, in the event that the calendar's representation would be a yearName instead of a year, for example "2019".
-
SECOND
public static final FormatPartType SECOND
The string used for the second, for example "07" or "42".
-
TIME_ZONE_NAME
public static final FormatPartType TIME_ZONE_NAME
The string used for the name of the time zone, for example "UTC".
-
WEEK_DAY
public static final FormatPartType WEEK_DAY
The string used for the weekday, for example "M", "Monday", or "Montag".
-
YEAR
public static final FormatPartType YEAR
The string used for the year, for example "2012" or "96".
-
YEAR_NAME
public static final FormatPartType YEAR_NAME
The string used for the yearName in relevant contexts, for example "geng-zi"
-
UNKNOWN
public static final FormatPartType UNKNOWN
Unknown token.
This is an add-on of Charba implementation.
-
-
Method Detail
-
values
public static FormatPartType[] 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 (FormatPartType c : FormatPartType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FormatPartType 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
-
-