public enum NumberStyle extends Enum<NumberStyle>
Enum Constant and Description |
---|
CURRENCY |
GENERAL |
INTEGER |
PERCENT |
SCIENTIFIC |
Modifier and Type | Method and Description |
---|---|
NumberFormat |
getFormat() |
NumberFormat |
getFormat(Locale locale) |
static NumberStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberStyle CURRENCY
public static final NumberStyle GENERAL
public static final NumberStyle INTEGER
public static final NumberStyle PERCENT
public static final NumberStyle SCIENTIFIC
public static NumberStyle[] values()
for (NumberStyle c : NumberStyle.values()) System.out.println(c);
public static NumberStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic NumberFormat getFormat()
public NumberFormat getFormat(Locale locale)
Copyright © 2019 Optimatika. All rights reserved.