Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/icu/text/UFormat#pubctors) \| [Inherited Methods](https://developer.android.com/reference/android/icu/text/UFormat#inhmethods)

# UFormat

*** ** * ** ***


`
public


abstract
class
UFormat
`


`


`

`

extends https://developer.android.com/reference/java/text/Format


`

`


`

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [java.text.Format](https://developer.android.com/reference/java/text/Format) ||
|   | ↳ | android.icu.text.UFormat |

|---|
| Known direct subclasses [DateFormat](https://developer.android.com/reference/android/icu/text/DateFormat), [DateIntervalFormat](https://developer.android.com/reference/android/icu/text/DateIntervalFormat), [MeasureFormat](https://developer.android.com/reference/android/icu/text/MeasureFormat), [MessageFormat](https://developer.android.com/reference/android/icu/text/MessageFormat), [NumberFormat](https://developer.android.com/reference/android/icu/text/NumberFormat), [PluralFormat](https://developer.android.com/reference/android/icu/text/PluralFormat), [TimeZoneFormat](https://developer.android.com/reference/android/icu/text/TimeZoneFormat) |---|---| | [DateFormat](https://developer.android.com/reference/android/icu/text/DateFormat) | **\[icu enhancement\]** ICU's replacement for `https://developer.android.com/reference/java/text/DateFormat`. Methods, fields, and other functionality specific to ICU are labeled '**\[icu\]**'. | | [DateIntervalFormat](https://developer.android.com/reference/android/icu/text/DateIntervalFormat) | DateIntervalFormat is a class for formatting and parsing date intervals in a language-independent manner. | | [MeasureFormat](https://developer.android.com/reference/android/icu/text/MeasureFormat) | A formatter for Measure objects. | | [MessageFormat](https://developer.android.com/reference/android/icu/text/MessageFormat) | **\[icu enhancement\]** ICU's replacement for `https://developer.android.com/reference/java/text/MessageFormat`. Methods, fields, and other functionality specific to ICU are labeled '**\[icu\]**'. | | [NumberFormat](https://developer.android.com/reference/android/icu/text/NumberFormat) | **\[icu enhancement\]** ICU's replacement for `https://developer.android.com/reference/java/text/NumberFormat`. Methods, fields, and other functionality specific to ICU are labeled '**\[icu\]**'. | | [PluralFormat](https://developer.android.com/reference/android/icu/text/PluralFormat) | `PluralFormat` supports the creation of internationalized messages with plural inflection. | | [TimeZoneFormat](https://developer.android.com/reference/android/icu/text/TimeZoneFormat) | `TimeZoneFormat` supports time zone display name formatting and parsing. | |

|---|
| Known indirect subclasses [CompactDecimalFormat](https://developer.android.com/reference/android/icu/text/CompactDecimalFormat), [DecimalFormat](https://developer.android.com/reference/android/icu/text/DecimalFormat), [SimpleDateFormat](https://developer.android.com/reference/android/icu/text/SimpleDateFormat) |---|---| | [CompactDecimalFormat](https://developer.android.com/reference/android/icu/text/CompactDecimalFormat) | Formats numbers in compact (abbreviated) notation, like "1.2K" instead of "1200". | | [DecimalFormat](https://developer.android.com/reference/android/icu/text/DecimalFormat) | **\[icu enhancement\]** ICU's replacement for `https://developer.android.com/reference/java/text/DecimalFormat`. Methods, fields, and other functionality specific to ICU are labeled '**\[icu\]**'. | | [SimpleDateFormat](https://developer.android.com/reference/android/icu/text/SimpleDateFormat) | **\[icu enhancement\]** ICU's replacement for `https://developer.android.com/reference/java/text/SimpleDateFormat`. Methods, fields, and other functionality specific to ICU are labeled '**\[icu\]**'. | |

<br />

*** ** * ** ***

An abstract class that extends `https://developer.android.com/reference/java/text/Format` to provide
additional ICU protocol, specifically, the `getLocale()`
API. All ICU format classes are subclasses of this class.
**See also:**

- `https://developer.android.com/reference/android/icu/util/ULocale`

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/icu/text/UFormat#UFormat()() ` Default constructor. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/text/Format ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/text/Format#clone()() ` Creates and returns a copy of this object. | | ` final https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/text/Format#format(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Formats an object to produce a string. | | ` abstract https://developer.android.com/reference/java/lang/StringBuffer` | ` https://developer.android.com/reference/java/text/Format#format(java.lang.Object,%20java.lang.StringBuffer,%20java.text.FieldPosition)(https://developer.android.com/reference/java/lang/Object obj, https://developer.android.com/reference/java/lang/StringBuffer toAppendTo, https://developer.android.com/reference/java/text/FieldPosition pos) ` Formats an object and appends the resulting text to a given string buffer. | | ` https://developer.android.com/reference/java/text/AttributedCharacterIterator` | ` https://developer.android.com/reference/java/text/Format#formatToCharacterIterator(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Formats an Object producing an `AttributedCharacterIterator`. | | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/text/Format#parseObject(java.lang.String)(https://developer.android.com/reference/java/lang/String source) ` Parses text from the beginning of the given string to produce an object. | | ` abstract https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/text/Format#parseObject(java.lang.String,%20java.text.ParsePosition)(https://developer.android.com/reference/java/lang/String source, https://developer.android.com/reference/java/text/ParsePosition pos) ` Parses text from a string to produce an object. | ||
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public constructors

### UFormat

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public UFormat ()
```

Default constructor.

<br />