# MdocField

Artifact: [androidx.credentials.registry:registry-digitalcredentials-mdoc](https://developer.android.com/jetpack/androidx/releases/credentials-registry) [View Source](https://cs.android.com/search?q=file:androidx/credentials/registry/digitalcredentials/mdoc/MdocField.kt+class:androidx.credentials.registry.digitalcredentials.mdoc.MdocField) Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

*** ** * ** ***


```
public final class MdocField extends DigitalCredentialField
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.credentials.registry.provider.digitalcredentials.DigitalCredentialField](https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialField) ||
|   | ↳ | [androidx.credentials.registry.digitalcredentials.mdoc.MdocField](https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocField) |

*** ** * ** ***

A property of a `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocEntry`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#MdocField(kotlin.String,kotlin.String,kotlin.Any,kotlin.collections.Set)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html namespace, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html identifier, https://developer.android.com/reference/java/lang/Object.html fieldValue, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/FieldDisplayProperties> fieldDisplayPropertySet )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final https://developer.android.com/reference/java/lang/Object.html` | `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#getFieldValue()()` the field value, used for matching purpose; for example, the field value of an ISO mDL age-over-twenty-one property may be `true`; a null value means that the exact value of this field cannot be used for matching (e.g. a user photo), or in other words, attempt to do value matching on this field will automatically fail |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#getIdentifier()()` the identifier of this field within the `namespace`, used for matching purpose; for example, the field name of an ISO mDL age-over-twenty-one property is "age_over_21" |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#getNamespace()()` the name space of this field, used for matching purpose; for example, the namespace of an ISO mDL age-over-twenty-one property is "org.iso.18013.5.1" |
| `int` | `https://developer.android.com/reference/androidx/credentials/registry/digitalcredentials/mdoc/MdocField#hashCode()()` |

| ### Inherited methods |
|---|
| From [androidx.credentials.registry.provider.digitalcredentials.DigitalCredentialField](https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialField) |---|---| | `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/FieldDisplayProperties>` | `https://developer.android.com/reference/androidx/credentials/registry/provider/digitalcredentials/DigitalCredentialField#getFieldDisplayPropertySet()()` | |

## Public constructors

### MdocField

```
public MdocField(
    @NonNull String namespace,
    @NonNull String identifier,
    Object fieldValue,
    @NonNull Set<@NonNull FieldDisplayProperties> fieldDisplayPropertySet
)
```

## Public methods

### equals

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

### getFieldValue

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

```
public final Object getFieldValue()
```

the field value, used for matching purpose; for example, the field value of an ISO mDL age-over-twenty-one property may be `true`; a null value means that the exact value of this field cannot be used for matching (e.g. a user photo), or in other words, attempt to do value matching on this field will automatically fail

### getIdentifier

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

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

the identifier of this field within the `namespace`, used for matching purpose; for example, the field name of an ISO mDL age-over-twenty-one property is "age_over_21"

### getNamespace

Added in [1.0.0-alpha05](https://developer.android.com/jetpack/androidx/releases/credentials-registry#1.0.0-alpha05)

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

the name space of this field, used for matching purpose; for example, the namespace of an ISO mDL age-over-twenty-one property is "org.iso.18013.5.1"

### hashCode

```
public int hashCode()
```