Locale.IsoCountryCode
  public
  static
  final
  
  enum
  Locale.IsoCountryCode
  
  
  
  
    extends Enum<Locale.IsoCountryCode>
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | java.lang.Enum<java.util.Locale.IsoCountryCode> | |
| ↳ | java.util.Locale.IsoCountryCode | |
Enum for specifying the type defined in ISO 3166. This enum is used to retrieve the two-letter ISO3166-1 alpha-2, three-letter ISO3166-1 alpha-3, four-letter ISO3166-3 country codes.
Summary
Enum values | |
|---|---|
Locale.IsoCountryCode  | 
    
      PART1_ALPHA2
      PART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes.  | 
  
Locale.IsoCountryCode  | 
    
      PART1_ALPHA3
      PART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes.  | 
  
Locale.IsoCountryCode  | 
    
      PART3
      PART3 is used to represent the ISO3166-3 four letter country codes.  | 
  
Public methods | |
|---|---|
        
        
        static
        
        
        Locale.IsoCountryCode
     | 
  
    
      
      valueOf(String name)
      
      
     | 
  
        
        
        static
        final
        
        IsoCountryCode[]
     | 
  
    
      
      values()
      
      
     | 
  
Inherited methods | |
|---|---|
Enum values
PART1_ALPHA2
public static final Locale.IsoCountryCode PART1_ALPHA2
PART1_ALPHA2 is used to represent the ISO3166-1 alpha-2 two letter country codes.
PART1_ALPHA3
public static final Locale.IsoCountryCode PART1_ALPHA3
PART1_ALPHA3 is used to represent the ISO3166-1 alpha-3 three letter country codes.
PART3
public static final Locale.IsoCountryCode PART3
PART3 is used to represent the ISO3166-3 four letter country codes.
Public methods
valueOf
public static Locale.IsoCountryCode valueOf (String name)
| Parameters | |
|---|---|
name | 
        
          String  | 
      
| Returns | |
|---|---|
Locale.IsoCountryCode | 
        |
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.