Enum Class NumericFormatElement
- All Implemented Interfaces:
Serializable,Comparable<NumericFormatElement>,Constable
One element of a numeric input format model, as
NumericFormatModel scans it.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionB: a number that may start at its decimal point..orD: the decimal point.9: a digit position that may be left out.$: the currency sign.FX: the exact-match toggle.EEtoEEEEEEE: an exponent.FM: the fill-mode toggle.,orG: a digit group separator.X: a hexadecimal digit position.Literal text: a quoted string, or characters a model may carry as themselves.MI: a sign that may be written._: spaces that may be written.%: the value written as a percentage.S: a sign that must be written.TM: a number in positional or scientific notation.TM9: a number in positional notation.TME: a number in scientific notation.0: a digit position that must be written, in a hexadecimal model as much as a decimal one. -
Method Summary
Modifier and TypeMethodDescriptionstatic NumericFormatElementReturns the enum constant of this class with the specified name.static NumericFormatElement[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DIGIT
9: a digit position that may be left out. -
ZERO
0: a digit position that must be written, in a hexadecimal model as much as a decimal one. -
HEX
X: a hexadecimal digit position. -
GROUP
,orG: a digit group separator. -
DECIMAL
.orD: the decimal point. -
DOLLAR
$: the currency sign. -
PERCENT
%: the value written as a percentage. -
BLANK
B: a number that may start at its decimal point. -
EXPONENT
EEtoEEEEEEE: an exponent. -
SIGN
S: a sign that must be written. -
MINUS
MI: a sign that may be written. -
FILL_MODE
FM: the fill-mode toggle. -
EXACT_MODE
FX: the exact-match toggle. -
OPTIONAL_SPACE
_: spaces that may be written. -
TEXT_MINIMAL
TM: a number in positional or scientific notation. -
TEXT_MINIMAL_POSITIONAL
TM9: a number in positional notation. -
TEXT_MINIMAL_SCIENTIFIC
TME: a number in scientific notation. -
LITERAL
Literal text: a quoted string, or characters a model may carry as themselves.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-