# A2uiSchemaKeyword.Const

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.Const) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/a2ui#1.0.0-alpha02)

*** ** * ** ***


```
public final class A2uiSchemaKeyword.Const<T extends Object> extends A2uiSchemaKeyword<@NonNull T>
```

<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) T\> ||
|   | ↳ | [androidx.a2ui.model.schema.A2uiSchemaKeyword.Const](https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword.Const) |

*** ** * ** ***

Constant value constraint (`const`).

## Summary

| ### Public constructors |
|---|
| `<T extends https://developer.android.com/reference/java/lang/Object.html> https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword.Const#Const(kotlin.Any)(@https://developer.android.com/reference/androidx/annotation/NonNull T value)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword.Const#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull T` | `https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword.Const#getValue()()` constant value required for the property |
| `int` | `https://developer.android.com/reference/androidx/a2ui/model/schema/A2uiSchemaKeyword.Const#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.Const#toString()()` |

## Public constructors

### Const

```
public <T extends Object> Const(@NonNull T value)
```

## Public methods

### equals

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

### getValue

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

```
public final @NonNull T getValue()
```

constant value required for the property

### hashCode

```
public int hashCode()
```

### toString

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