public enum NumberFormats extends Enum<NumberFormats>
| Enum Constant and Description |
|---|
CURRENCY
Currency formatting.
|
DATE
Date formatting.
|
DATE_TIME
Date+Time formatting.
|
NUMBER
Number formatting.
|
PERCENT
Percent formatting.
|
SCIENTIFIC
Scientific number formatting.
|
TEXT
Text formatting.
|
TIME
Time formatting.
|
UNSPECIFIED
Unspecified format
|
| Modifier and Type | Method and Description |
|---|---|
static NumberFormats |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumberFormats[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumberFormats UNSPECIFIED
public static final NumberFormats TEXT
public static final NumberFormats NUMBER
public static final NumberFormats PERCENT
public static final NumberFormats CURRENCY
public static final NumberFormats DATE
public static final NumberFormats TIME
public static final NumberFormats DATE_TIME
public static final NumberFormats SCIENTIFIC
public static NumberFormats[] values()
for (NumberFormats c : NumberFormats.values()) System.out.println(c);
public static NumberFormats 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 nullCopyright © 2022. All rights reserved.