public enum DisplayFormat extends java.lang.Enum<DisplayFormat>
| Enum Constant and Description |
|---|
LONG
2 dollars 1 cent
|
MAJORONLY
2 dollars
|
SIGN
$2.1
|
SMALL
2.01 dollars
|
| Modifier and Type | Method and Description |
|---|---|
static DisplayFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DisplayFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DisplayFormat LONG
public static final DisplayFormat SIGN
public static final DisplayFormat SMALL
public static final DisplayFormat MAJORONLY
public static DisplayFormat[] values()
for (DisplayFormat c : DisplayFormat.values()) System.out.println(c);
public static DisplayFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null