DisplayOptions.DisplayLength
  public
  static
  final
  
  enum
  DisplayOptions.DisplayLength
  
  
  
  
    extends Enum<DisplayOptions.DisplayLength>
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | java.lang.Enum<android.icu.text.DisplayOptions.DisplayLength> | |
| ↳ | android.icu.text.DisplayOptions.DisplayLength | |
Represents all the display lengths.
Summary
| Enum values | |
|---|---|
| DisplayOptions.DisplayLength | LENGTH_FULLUses full names when generating a locale name, e.g. "United States" for US. | 
| DisplayOptions.DisplayLength | LENGTH_SHORTUse short names when generating a locale name, e.g. "U.S." for US. | 
| DisplayOptions.DisplayLength | UNDEFINEDA possible setting for DisplayLength. | 
| Fields | |
|---|---|
| 
    public
    static
    final
    List<DisplayOptions.DisplayLength> | VALUESUnmodifiable List of all display lengths constants. | 
| Public methods | |
|---|---|
| 
        
        
        static
        
        
        DisplayOptions.DisplayLength | 
      valueOf(String name)
       | 
| 
        
        
        static
        final
        
        DisplayLength[] | 
      values()
       | 
| Inherited methods | |
|---|---|
Enum values
LENGTH_FULL
public static final DisplayOptions.DisplayLength LENGTH_FULL
Uses full names when generating a locale name, e.g. "United States" for US.
LENGTH_SHORT
public static final DisplayOptions.DisplayLength LENGTH_SHORT
Use short names when generating a locale name, e.g. "U.S." for US.
UNDEFINED
public static final DisplayOptions.DisplayLength UNDEFINED
A possible setting for DisplayLength. The DisplayLength context to be used is unknown (this is the default value).
Fields
VALUES
public static final List<DisplayOptions.DisplayLength> VALUES
Unmodifiable List of all display lengths constants. List version of values().
Public methods
valueOf
public static DisplayOptions.DisplayLength valueOf (String name)
| Parameters | |
|---|---|
| name | String | 
| Returns | |
|---|---|
| DisplayOptions.DisplayLength | |
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.
