Package com.squarespace.cldrengine.api
Enum DecimalFormatStyleType
- java.lang.Object
-
- java.lang.Enum<DecimalFormatStyleType>
-
- com.squarespace.cldrengine.api.DecimalFormatStyleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DecimalFormatStyleType>
public enum DecimalFormatStyleType extends java.lang.Enum<DecimalFormatStyleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DECIMAL
LONG
PERCENT
PERCENT_SCALED
PERMILLE
PERMILLE_SCALED
SCIENTIFIC
SHORT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DecimalFormatStyleType
fromString(java.lang.String s)
java.lang.String
value()
static DecimalFormatStyleType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DecimalFormatStyleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DECIMAL
public static final DecimalFormatStyleType DECIMAL
-
SHORT
public static final DecimalFormatStyleType SHORT
-
LONG
public static final DecimalFormatStyleType LONG
-
SCIENTIFIC
public static final DecimalFormatStyleType SCIENTIFIC
-
PERCENT
public static final DecimalFormatStyleType PERCENT
-
PERCENT_SCALED
public static final DecimalFormatStyleType PERCENT_SCALED
-
PERMILLE
public static final DecimalFormatStyleType PERMILLE
-
PERMILLE_SCALED
public static final DecimalFormatStyleType PERMILLE_SCALED
-
-
Method Detail
-
values
public static DecimalFormatStyleType[] 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 (DecimalFormatStyleType c : DecimalFormatStyleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DecimalFormatStyleType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public java.lang.String value()
-
fromString
public static DecimalFormatStyleType fromString(java.lang.String s)
-
-