| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| public static class | ListFormatter.Field
Field selectors for format fields defined by ListFormatter. |
| public static class | ListFormatter.FormattedList
An immutable class containing the result of a list formatting operation. |
| pack-priv static class | |
| private static interface | |
| public static class | ListFormatter.SpanField
Class for span fields in FormattedList. |
| private static class | |
| public static enum | ListFormatter.Type
Type of meaning expressed by the list. |
| public static enum | ListFormatter.Width
Verbosity level of the list patterns. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static ListFormatter. | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private final ULocale | |
| private final String | |
| private final ListFormatter. | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | ListFormatter(String
string for two items, containing {0} for the first, and {1}
for the second. two, String string for the start of a list items, containing {0} for the
first, and {1} for the rest. start, String string for the start of a list items, containing {0} for the
first part of the list, and {1} for the rest of the list. middle, String string for the end of a list items, containing {0} for the
first part of the list, and {1} for the last item. end)
Deprecated
This API is ICU internal only.
Internal: Create a ListFormatter from component strings,
with definitions as in LDML.
|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static String | |
| private ListFormatter. | |
| public String | |
| public String | Returns: items formatted into a stringitems to format. The toString() method is called on each. items)Format a collection of objects. |
| pack-priv ListFormatter. | |
| public ListFormatter. | Returns: items formatted into a FormattedListitems to format. The toString() method is called on each. items)Format a list of objects to a FormattedList. |
| public ListFormatter. | Returns: items formatted into a FormattedListitems to format. The toString() method is called on each. items)Format a collection of objects to a FormattedList. |
| public static ListFormatter | Returns: ListFormatterthe locale in question. locale, ListFormatter.Create a list formatter that is appropriate for a locale. |
| public static ListFormatter | Returns: ListFormatterthe locale in question. locale, ListFormatter.Create a list formatter that is appropriate for a locale. |
| public static ListFormatter | Returns: ListFormatterthe locale in question. locale)Create a list formatter that is appropriate for a locale. |
| public static ListFormatter | Returns: ListFormatterthe locale in question. locale)Create a list formatter that is appropriate for a locale. |
| public static ListFormatter | Returns: ListFormatterCreate a list formatter that is appropriate for the default FORMAT locale. |
| public ULocale | |
| public String | Returns: the pattern with {0}, {1}, {2}, etc. For English, getPatternForNumItems(3) == "{0}, {1}, and {2}"the item count. count)Returns the pattern to use for a particular item count. |
| pack-priv static String |