public static enum ListFormatter.Type extends Enum<ListFormatter.Type>
Enum Constant and Description |
---|
AND
Conjunction formatting, e.g.
|
OR
Disjunction (or alternative, or simply one of) formatting, e.g.
|
UNITS
Formatting of a list of values with units, e.g. "5 pounds, 12 ounces".
|
Modifier and Type | Method and Description |
---|---|
static ListFormatter.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ListFormatter.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ListFormatter.Type AND
public static final ListFormatter.Type OR
public static final ListFormatter.Type UNITS
public static ListFormatter.Type[] values()
for (ListFormatter.Type c : ListFormatter.Type.values()) System.out.println(c);
public static ListFormatter.Type 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 © 2016 Unicode, Inc. and others.