Locale.Category
  public
  static
  final
  
  enum
  Locale.Category
  
  
  
  
    extends Enum<Locale.Category>
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | java.lang.Enum<java.util.Locale.Category> | |
| ↳ | java.util.Locale.Category | |
Enum for locale categories. These locale categories are used to get/set the default locale for the specific functionality represented by the category.
Summary
Enum values | |
|---|---|
Locale.Category  | 
    
      DISPLAY
      Category used to represent the default locale for displaying user interfaces.  | 
  
Locale.Category  | 
    
      FORMAT
      Category used to represent the default locale for formatting dates, numbers, and/or currencies.  | 
  
Public methods | |
|---|---|
        
        
        static
        
        
        Locale.Category
     | 
  
    
      
      valueOf(String name)
      
      
     | 
  
        
        
        static
        final
        
        Category[]
     | 
  
    
      
      values()
      
      
     | 
  
Inherited methods | |
|---|---|
Enum values
DISPLAY
public static final Locale.Category DISPLAY
Category used to represent the default locale for displaying user interfaces.
FORMAT
public static final Locale.Category FORMAT
Category used to represent the default locale for formatting dates, numbers, and/or currencies.
Public methods
valueOf
public static Locale.Category valueOf (String name)
| Parameters | |
|---|---|
name | 
        
          String  | 
      
| Returns | |
|---|---|
Locale.Category | 
        |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.