Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/icu/util/LocaleData#nestedclasses) \| [Constants](https://developer.android.com/reference/android/icu/util/LocaleData#constants) \| [Methods](https://developer.android.com/reference/android/icu/util/LocaleData#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/icu/util/LocaleData#inhmethods)

# LocaleData

*** ** * ** ***


`
public

final

class
LocaleData
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.icu.util.LocaleData |

<br />

*** ** * ** ***

A class for accessing miscellaneous data in the locale bundles

## Summary

| ### Nested classes ||
|---|---|
| ` class` | `https://developer.android.com/reference/android/icu/util/LocaleData.MeasurementSystem` Enumeration for representing the measurement systems. |
| ` class` | `https://developer.android.com/reference/android/icu/util/LocaleData.PaperSize` A class that represents the size of letter head used in the country |

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/icu/util/LocaleData#ALT_QUOTATION_END` Delimiter type for `https://developer.android.com/reference/android/icu/util/LocaleData#getDelimiter(int)`. |
| `int` | `https://developer.android.com/reference/android/icu/util/LocaleData#ALT_QUOTATION_START` Delimiter type for `https://developer.android.com/reference/android/icu/util/LocaleData#getDelimiter(int)`. |
| `int` | `https://developer.android.com/reference/android/icu/util/LocaleData#QUOTATION_END` Delimiter type for `https://developer.android.com/reference/android/icu/util/LocaleData#getDelimiter(int)`. |
| `int` | `https://developer.android.com/reference/android/icu/util/LocaleData#QUOTATION_START` Delimiter type for `https://developer.android.com/reference/android/icu/util/LocaleData#getDelimiter(int)`. |

| ### Public methods ||
|---|---|
| ` static https://developer.android.com/reference/android/icu/util/VersionInfo` | ` https://developer.android.com/reference/android/icu/util/LocaleData#getCLDRVersion()() ` Returns the current CLDR version |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/icu/util/LocaleData#getDelimiter(int)(int type) ` Retrieves a delimiter string from the locale data. |
| ` static https://developer.android.com/reference/android/icu/util/LocaleData` | ` https://developer.android.com/reference/android/icu/util/LocaleData#getInstance(android.icu.util.ULocale)(https://developer.android.com/reference/android/icu/util/ULocale locale) ` Gets the LocaleData object associated with the ULocale specified in locale |
| ` static https://developer.android.com/reference/android/icu/util/LocaleData` | ` https://developer.android.com/reference/android/icu/util/LocaleData#getInstance()() ` Gets the LocaleData object associated with the default `FORMAT` locale |
| ` static https://developer.android.com/reference/android/icu/util/LocaleData.MeasurementSystem` | ` https://developer.android.com/reference/android/icu/util/LocaleData#getMeasurementSystem(android.icu.util.ULocale)(https://developer.android.com/reference/android/icu/util/ULocale locale) ` Returns the measurement system used in the locale specified by the locale. |
| ` boolean` | ` https://developer.android.com/reference/android/icu/util/LocaleData#getNoSubstitute()() ` Gets the "no substitute" behavior of this locale data object. |
| ` static https://developer.android.com/reference/android/icu/util/LocaleData.PaperSize` | ` https://developer.android.com/reference/android/icu/util/LocaleData#getPaperSize(android.icu.util.ULocale)(https://developer.android.com/reference/android/icu/util/ULocale locale) ` Returns the size of paper used in the locale. |
| ` void` | ` https://developer.android.com/reference/android/icu/util/LocaleData#setNoSubstitute(boolean)(boolean setting) ` Sets the "no substitute" behavior of this locale data object. |

| ### Inherited methods |
|---|---|
| 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*. | ||

## Constants

### ALT_QUOTATION_END

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

```
public static final int ALT_QUOTATION_END
```

Delimiter type for `https://developer.android.com/reference/android/icu/util/LocaleData#getDelimiter(int)`.

<br />

Constant Value:

3
(0x00000003)


### ALT_QUOTATION_START

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

```
public static final int ALT_QUOTATION_START
```

Delimiter type for `https://developer.android.com/reference/android/icu/util/LocaleData#getDelimiter(int)`.

<br />

Constant Value:

2
(0x00000002)


### QUOTATION_END

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

```
public static final int QUOTATION_END
```

Delimiter type for `https://developer.android.com/reference/android/icu/util/LocaleData#getDelimiter(int)`.

<br />

Constant Value:

1
(0x00000001)


### QUOTATION_START

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

```
public static final int QUOTATION_START
```

Delimiter type for `https://developer.android.com/reference/android/icu/util/LocaleData#getDelimiter(int)`.

<br />

Constant Value:

0
(0x00000000)


## Public methods

### getCLDRVersion

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

```
public static VersionInfo getCLDRVersion ()
```

Returns the current CLDR version

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/icu/util/VersionInfo` | <br /> |

### getDelimiter

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

```
public String getDelimiter (int type)
```

Retrieves a delimiter string from the locale data.

<br />

| Parameters ||
|---|---|
| `type` | `int`: The type of delimiter string desired. Currently, the valid choices are QUOTATION_START, QUOTATION_END, ALT_QUOTATION_START, or ALT_QUOTATION_END. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | The desired delimiter string. <br /> |

### getInstance

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

```
public static LocaleData getInstance (ULocale locale)
```

Gets the LocaleData object associated with the ULocale specified in locale

<br />

| Parameters ||
|---|---|
| `locale` | `ULocale`: Locale with thich the locale data object is associated. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/icu/util/LocaleData` | A locale data object. <br /> |

### getInstance

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

```
public static LocaleData getInstance ()
```

Gets the LocaleData object associated with the default `FORMAT` locale

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/icu/util/LocaleData` | A locale data object. <br /> |

**See also:**

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

### getMeasurementSystem

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

```
public static LocaleData.MeasurementSystem getMeasurementSystem (ULocale locale)
```

Returns the measurement system used in the locale specified by the locale.

<br />

| Parameters ||
|---|---|
| `locale` | `ULocale`: The locale for which the measurement system to be retrieved. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/icu/util/LocaleData.MeasurementSystem` | MeasurementSystem the measurement system used in the locale. <br /> |

### getNoSubstitute

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

```
public boolean getNoSubstitute ()
```

Gets the "no substitute" behavior of this locale data object.

<br />

| Returns ||
|---|---|
| `boolean` | Value for the no substitute behavior. If true, methods of this locale data object will return an error when no data is available for that method, given the locale ID supplied to the constructor. <br /> |

### getPaperSize

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

```
public static LocaleData.PaperSize getPaperSize (ULocale locale)
```

Returns the size of paper used in the locale. The paper sizes returned are always in
*milli-meters*.

<br />

| Parameters ||
|---|---|
| `locale` | `ULocale`: The locale for which the measurement system to be retrieved. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/icu/util/LocaleData.PaperSize` | The paper size used in the locale <br /> |

### setNoSubstitute

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

```
public void setNoSubstitute (boolean setting)
```

Sets the "no substitute" behavior of this locale data object.

<br />

| Parameters ||
|---|---|
| `setting` | `boolean`: Value for the no substitute behavior. If true, methods of this locale data object will return an error when no data is available for that method, given the locale ID supplied to the constructor. <br /> |