public static enum PersonNameFormatter.Usage extends Enum<PersonNameFormatter.Usage>
Enum Constant and Description |
---|
ADDRESSING
Used for when the name is going to be used to address the user directly: "Turn left here, John."
|
MONOGRAM
Used to generate monograms, short 1 to 3-character versions of the name suitable for use in things
like chat avatars.
|
REFERRING
Used in general cases, when the name is used to refer to somebody else.
|
Modifier and Type | Method and Description |
---|---|
static PersonNameFormatter.Usage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersonNameFormatter.Usage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersonNameFormatter.Usage ADDRESSING
public static final PersonNameFormatter.Usage REFERRING
public static final PersonNameFormatter.Usage MONOGRAM
public static PersonNameFormatter.Usage[] values()
for (PersonNameFormatter.Usage c : PersonNameFormatter.Usage.values()) System.out.println(c);
public static PersonNameFormatter.Usage 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.