# A2uiSchemaKeyword.Format

Artifact: [androidx.a2ui:a2ui-model](https://developer.android.com/jetpack/androidx/releases/a2ui) [View Source](https://cs.android.com/search?q=file:androidx/a2ui/model/schema/A2uiSchemaKeyword.kt+class:androidx.a2ui.model.schema.A2uiSchemaKeyword.Format) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
public final class A2uiSchemaKeyword.Format extends A2uiSchemaKeyword<@NonNull String>
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.a2ui.model.schema.A2uiSchemaKeyword](https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword)\<@[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull) [String](https://developer.android.com/reference/java/lang/String.html)\> ||
|   | ↳ | [androidx.a2ui.model.schema.A2uiSchemaKeyword.Format](https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword.Format) |

*** ** * ** ***

String format constraint (`format`).

Supported formats: `"date"`, `"time"`, and `"date-time"`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword.Format#Format(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html format)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword.Format#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword.Format#getFormat()()` format constraint name |
| `int` | `https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword.Format#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword.Format#toString()()` |

## Public constructors

### Format

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

```
public Format(@NonNull String format)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getFormat

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

```
public final @NonNull String getFormat()
```

format constraint name

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```