Enum PersonNameFormatter.Formality

java.lang.Object
java.lang.Enum<PersonNameFormatter.Formality>
com.ibm.icu.text.PersonNameFormatter.Formality
All Implemented Interfaces:
Serializable, Comparable<PersonNameFormatter.Formality>, java.lang.constant.Constable
Enclosing class:
PersonNameFormatter

public static enum PersonNameFormatter.Formality extends Enum<PersonNameFormatter.Formality>
Specifies the intended formality of the formatted name.
  • Enum Constant Details

    • FORMAL

      public static final PersonNameFormatter.Formality FORMAL
      The more formal version of the name.
    • INFORMAL

      public static final PersonNameFormatter.Formality INFORMAL
      The more informal version of the name. In English, this might omit fields or use the "informal" variant of the given name.
  • Method Details

    • values

      public static PersonNameFormatter.Formality[] values()
      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

      public static PersonNameFormatter.Formality valueOf(String name)
      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 name
      NullPointerException - if the argument is null