public static enum NumberFormatter.Pattern extends Enum<NumberFormatter.Pattern>
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
abstract NumberFormat |
toFormat(Locale locale) |
static NumberFormatter.Pattern |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberFormatter.Pattern[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberFormatter.Pattern DEFAULT
public static final NumberFormatter.Pattern INTEGER
public static final NumberFormatter.Pattern CURRENCY
public static final NumberFormatter.Pattern PERCENT
public static NumberFormatter.Pattern[] values()
for (NumberFormatter.Pattern c : NumberFormatter.Pattern.values()) System.out.println(c);
public static NumberFormatter.Pattern 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 abstract NumberFormat toFormat(@Nonnull Locale locale)
Copyright © 2023 echocat. All rights reserved.