Package com.ibm.icu.text
Class PersonNameFormatter.Builder
java.lang.Object
com.ibm.icu.text.PersonNameFormatter.Builder
- Enclosing class:
- PersonNameFormatter
Deprecated.
This API is for technology preview only.
A utility class that can be used to construct a PersonNameFormatter.
Use PersonNameFormatter.builder() to get a new instance.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.This API is for technology preview only.setFormality
(PersonNameFormatter.Formality formality) Deprecated.This API is for technology preview only.setLength
(PersonNameFormatter.Length length) Deprecated.This API is for technology preview only.Deprecated.This API is for technology preview only.setOptions
(Set<PersonNameFormatter.Options> options) 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.Sets the locale for the formatter to be constructed.- Parameters:
locale
- The new formatter locale. May not be null.- Returns:
- This builder.
-
setLength
Deprecated.This API is for technology preview only.Sets the name length for the formatter to be constructed.- Parameters:
length
- The new name length.- Returns:
- This builder.
-
setUsage
Deprecated.This API is for technology preview only.Sets the name usage for the formatter to be constructed.- Parameters:
usage
- The new name length.- Returns:
- This builder.
-
setFormality
@Deprecated public PersonNameFormatter.Builder setFormality(PersonNameFormatter.Formality formality) Deprecated.This API is for technology preview only.Sets the name formality for the formatter to be constructed.- Parameters:
formality
- The new name length.- Returns:
- This builder.
-
setOptions
Deprecated.This API is for technology preview only.Sets the options set for the formatter to be constructed. The Set passed in here replaces the entire options set the builder already has (if one has already been set); this method doesn't modify the builder's options set.- Parameters:
options
- The new options set.- Returns:
- This builder.
-
build
Deprecated.This API is for technology preview only.Returns a new PersonNameFormatter with the values that were passed to this builder. This method doesn't freeze or delete the builder; you can call build() more than once (presumably after calling the other methods to change the parameter) to create more than one PersonNameFormatter; you don't need a new Builder for each PersonNameFormatter.- Returns:
- A new PersonNameFormatter.
-