Enum NumberFormatOptions.DigitGroupSeparator
- java.lang.Object
-
- java.lang.Enum<NumberFormatOptions.DigitGroupSeparator>
-
- de.xima.fc.form.common.number_format.NumberFormatOptions.DigitGroupSeparator
-
- All Implemented Interfaces:
com.alibaba.fastjson.serializer.JSONSerializable
,Serializable
,Comparable<NumberFormatOptions.DigitGroupSeparator>
- Enclosing class:
- NumberFormatOptions
public static enum NumberFormatOptions.DigitGroupSeparator extends Enum<NumberFormatOptions.DigitGroupSeparator> implements com.alibaba.fastjson.serializer.JSONSerializable
Separator to use between digit groups.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APOSTROPHE
Use an apostrophe as the digit group separator.ARABIC_COMMA
Use an Arabic comma as the digit group separator.COMMA
Use a comma as the digit group separator.DOT
Use a dot as the digit group separator.NARROW_NON_BREAKING_SPACE
Use a narrow non-breaking space as the digit group separator.NON_BREAKING_SPACE
Use a non-breaking space as the digit group separator.OVERDOT
Use an overdot as the digit group separator.SPACE
Use a space as the digit group separator.THIN_SPACE
Use a thin space as the digit group separator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NumberFormatOptions.DigitGroupSeparator
fromString(String value)
Finds the enum constant corresponding to the given string value, seevalue()
.String
toString()
String
value()
Gets the string value of this digit group separator.static NumberFormatOptions.DigitGroupSeparator
valueOf(String name)
Returns the enum constant of this type with the specified name.static NumberFormatOptions.DigitGroupSeparator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.void
write(com.alibaba.fastjson.serializer.JSONSerializer serializer, Object fieldName, Type fieldType, int features)
-
-
-
Enum Constant Detail
-
COMMA
public static final NumberFormatOptions.DigitGroupSeparator COMMA
Use a comma as the digit group separator.
-
DOT
public static final NumberFormatOptions.DigitGroupSeparator DOT
Use a dot as the digit group separator.
-
ARABIC_COMMA
public static final NumberFormatOptions.DigitGroupSeparator ARABIC_COMMA
Use an Arabic comma as the digit group separator.
-
OVERDOT
public static final NumberFormatOptions.DigitGroupSeparator OVERDOT
Use an overdot as the digit group separator.
-
APOSTROPHE
public static final NumberFormatOptions.DigitGroupSeparator APOSTROPHE
Use an apostrophe as the digit group separator.
-
SPACE
public static final NumberFormatOptions.DigitGroupSeparator SPACE
Use a space as the digit group separator.
-
THIN_SPACE
public static final NumberFormatOptions.DigitGroupSeparator THIN_SPACE
Use a thin space as the digit group separator.
-
NARROW_NON_BREAKING_SPACE
public static final NumberFormatOptions.DigitGroupSeparator NARROW_NON_BREAKING_SPACE
Use a narrow non-breaking space as the digit group separator.
-
NON_BREAKING_SPACE
public static final NumberFormatOptions.DigitGroupSeparator NON_BREAKING_SPACE
Use a non-breaking space as the digit group separator.
-
-
Method Detail
-
values
public static NumberFormatOptions.DigitGroupSeparator[] 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 (NumberFormatOptions.DigitGroupSeparator c : NumberFormatOptions.DigitGroupSeparator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NumberFormatOptions.DigitGroupSeparator 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<NumberFormatOptions.DigitGroupSeparator>
-
value
public String value()
Gets the string value of this digit group separator.- Returns:
- The string value of this digit group separator.
-
write
public void write(com.alibaba.fastjson.serializer.JSONSerializer serializer, Object fieldName, Type fieldType, int features) throws IOException
- Specified by:
write
in interfacecom.alibaba.fastjson.serializer.JSONSerializable
- Throws:
IOException
-
fromString
public static NumberFormatOptions.DigitGroupSeparator fromString(String value)
Finds the enum constant corresponding to the given string value, seevalue()
.- Parameters:
value
- The string value to find the enum constant for.- Returns:
- The enum constant corresponding to the given string value, or
null
if no such constant exists.
-
-