public static class SimplePersonName.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
SimplePersonName.Builder |
addField(PersonName.NameField field,
Collection<PersonName.FieldModifier> modifiers,
String value)
Sets the value for one field (with optional modifiers) in the new name object.
|
SimplePersonName |
build()
Returns a SimplePersonName with the field values and name locale that were passed to this builder.
|
SimplePersonName.Builder |
setLocale(Locale locale)
Set the locale for the new name object.
|
SimplePersonName.Builder |
setPreferredOrder(PersonName.PreferredOrder preferredOrder)
Set the preferred order for the new name object.
|
public SimplePersonName.Builder setLocale(Locale locale)
locale - The locale for the new name object. Can be null, which indicates the
name's locale is unknown.public SimplePersonName.Builder setPreferredOrder(PersonName.PreferredOrder preferredOrder)
preferredOrder - The preferred order for the new name object.public SimplePersonName.Builder addField(PersonName.NameField field, Collection<PersonName.FieldModifier> modifiers, String value)
field - A NameField object specifying the field to set.modifiers - A collection of FieldModifier objects for any modifiers that apply
to this field value. May be null, which is the same as the empty set.value - The value for this field.public SimplePersonName build()
Copyright © 2016 Unicode, Inc. and others.