Enum NumberFormatOptions.DecimalSeparator
- java.lang.Object
-
- java.lang.Enum<NumberFormatOptions.DecimalSeparator>
-
- de.xima.fc.form.common.number_format.NumberFormatOptions.DecimalSeparator
-
- All Implemented Interfaces:
com.alibaba.fastjson.serializer.JSONSerializable
,Serializable
,Comparable<NumberFormatOptions.DecimalSeparator>
- Enclosing class:
- NumberFormatOptions
public static enum NumberFormatOptions.DecimalSeparator extends Enum<NumberFormatOptions.DecimalSeparator> implements com.alibaba.fastjson.serializer.JSONSerializable
Separator to use to separate the integer part of the number from the fractional part.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARABIC_DECIMAL_SEPARATOR
Use an arabic comma as the decimal separator.COMMA
Use a comma as the decimal separator.DECIMAL_SEPARATOR_KEY_SYMBOL
Use the decimal separator key symbol as the decimal separator.DOT
Use a dot as the decimal separator.MIDDLE_DOT
Use a middle dot as the decimal separator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NumberFormatOptions.DecimalSeparator
fromString(String value)
Finds the enum constant corresponding to the given string value, seevalue()
.String
toString()
String
value()
Gets the string value of this decimal separator.static NumberFormatOptions.DecimalSeparator
valueOf(String name)
Returns the enum constant of this type with the specified name.static NumberFormatOptions.DecimalSeparator[]
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
-
DOT
public static final NumberFormatOptions.DecimalSeparator DOT
Use a dot as the decimal separator.
-
COMMA
public static final NumberFormatOptions.DecimalSeparator COMMA
Use a comma as the decimal separator.
-
MIDDLE_DOT
public static final NumberFormatOptions.DecimalSeparator MIDDLE_DOT
Use a middle dot as the decimal separator.
-
ARABIC_DECIMAL_SEPARATOR
public static final NumberFormatOptions.DecimalSeparator ARABIC_DECIMAL_SEPARATOR
Use an arabic comma as the decimal separator.
-
DECIMAL_SEPARATOR_KEY_SYMBOL
public static final NumberFormatOptions.DecimalSeparator DECIMAL_SEPARATOR_KEY_SYMBOL
Use the decimal separator key symbol as the decimal separator.
-
-
Method Detail
-
values
public static NumberFormatOptions.DecimalSeparator[] 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.DecimalSeparator c : NumberFormatOptions.DecimalSeparator.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.DecimalSeparator 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.DecimalSeparator>
-
value
public String value()
Gets the string value of this decimal separator.- Returns:
- The string value of this decimal 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.DecimalSeparator 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.
-
-