Package com.ibm.icu.text
Class SimplePersonName.Builder
java.lang.Object
com.ibm.icu.text.SimplePersonName.Builder
- Enclosing class:
- SimplePersonName
Deprecated.
This API is for technology preview only.
A utility class for constructing a SimplePersonName. Use SimplePersonName.builder()
to get a new Builder instance.
-
Method Summary
Modifier and TypeMethodDescriptionaddField
(PersonName.NameField field, Collection<PersonName.FieldModifier> modifiers, String value) Deprecated.This API is for technology preview only.build()
Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.
-
Method Details
-
setLocale
Deprecated.This API is for technology preview only.Set the locale for the new name object.- Parameters:
locale
- The locale for the new name object. Can be null, which indicates the name's locale is unknown.- Returns:
- This builder.
-
addField
@Deprecated public SimplePersonName.Builder addField(PersonName.NameField field, Collection<PersonName.FieldModifier> modifiers, String value) Deprecated.This API is for technology preview only.Sets the value for one field (with optional modifiers) in the new name object.- Parameters:
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.- Returns:
- This builder.
-
build
Deprecated.This API is for technology preview only.Returns a SimplePersonName with the field values and name locale that were passed to this builder.- Returns:
- A SimplePersonName with the field values and name locale that were passed to this builder.
-