ListFormatter.Type


public static final enum ListFormatter.Type
extends Enum<ListFormatter.Type>

java.lang.Object
   ↳ java.lang.Enum<android.icu.text.ListFormatter.Type>
     ↳ android.icu.text.ListFormatter.Type


Type of meaning expressed by the list.

Summary

Enum values

ListFormatter.Type  AND

Conjunction formatting, e.g. "Alice, Bob, Charlie, and Delta". 

ListFormatter.Type  OR

Disjunction (or alternative, or simply one of) formatting, e.g. 

ListFormatter.Type  UNITS

Formatting of a list of values with units, e.g. "5 pounds, 12 ounces". 

Public methods

static ListFormatter.Type valueOf(String name)
static final Type[] values()

Inherited methods

Enum values

AND

Added in API level 33
public static final ListFormatter.Type AND

Conjunction formatting, e.g. "Alice, Bob, Charlie, and Delta".

OR

Added in API level 33
public static final ListFormatter.Type OR

Disjunction (or alternative, or simply one of) formatting, e.g. "Alice, Bob, Charlie, or Delta".

UNITS

Added in API level 33
public static final ListFormatter.Type UNITS

Formatting of a list of values with units, e.g. "5 pounds, 12 ounces".

Public methods

valueOf

public static ListFormatter.Type valueOf (String name)

Parameters
name String

Returns
ListFormatter.Type

values

public static final Type[] values ()

Returns
Type[]