Locale.Builder
Class Locale.Builder
- java.lang.Object
-
- java.util.Locale.Builder
- Enclosing class:
- Locale
public static final class Locale.Builder extends Object
Builder
is used to build instances of Locale
from values configured by the setters. Unlike the Locale
constructors, the Builder
checks if a value configured by a setter satisfies the syntax requirements defined by the Locale
class. A Locale
object created by a Builder
is well-formed and can be transformed to a well-formed IETF BCP 47 language tag without losing information.
Note: The Locale
class does not provide any syntactic restrict