Package com.ibm.icu.text
Enum PersonNameFormatter.Options
- All Implemented Interfaces:
Serializable
,Comparable<PersonNameFormatter.Options>
,java.lang.constant.Constable
- Enclosing class:
- PersonNameFormatter
@Deprecated
public static enum PersonNameFormatter.Options
extends Enum<PersonNameFormatter.Options>
Deprecated.
This API is for technology preview only.
Additional options to customize the behavior of the formatter.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.This API is for technology preview only.Deprecated.This API is for technology preview only. -
Method Summary
Modifier and TypeMethodDescriptionstatic PersonNameFormatter.Options
Deprecated.Returns the enum constant of this type with the specified name.static PersonNameFormatter.Options[]
values()
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SORTING
Deprecated.This API is for technology preview only.Causes the formatter to generate results suitable for inclusion in a sorted list. For GN-first languages, this generally means moving the surname to the beginning of the string, with a comma between it and the rest of the name: e.g., "Carter, James E. Jr.". -
SURNAME_ALLCAPS
Deprecated.This API is for technology preview only.Requests that the surname in the formatted result be rendered in ALL CAPS. This is often done with Japanese names to highlight which name is the surname.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-