# DynamicBuilders.DynamicInt32.IntFormatter

Artifact: [androidx.wear.protolayout:protolayout-expression](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/expression/DynamicBuilders.java+class:androidx.wear.protolayout.expression.DynamicBuilders.DynamicInt32.IntFormatter) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
public class DynamicBuilders.DynamicInt32.IntFormatter
```

<br />

*** ** * ** ***

Allows formatting `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInt32` into a `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicString`.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInt32.IntFormatter.Builder` Builder to create `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInt32.IntFormatter` objects. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/IntRange(from = 0) int` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInt32.IntFormatter#getMinIntegerDigits()()` Returns the minimum number of digits allowed in the integer portion of a number. |
| `boolean` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInt32.IntFormatter#isGroupingUsed()()` Returns whether digit grouping is used or not. |

## Public methods

### getMinIntegerDigits

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @IntRange(from = 0) int getMinIntegerDigits()
```

Returns the minimum number of digits allowed in the integer portion of a number.

### isGroupingUsed

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public boolean isGroupingUsed()
```

Returns whether digit grouping is used or not.