# AdTechIdentifier

Artifact: [androidx.privacysandbox.ads:ads-adservices](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads) [View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/ads/adservices/common/AdTechIdentifier.kt+class:androidx.privacysandbox.ads.adservices.common.AdTechIdentifier) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ads#1.0.0)

*** ** * ** ***


```
public final class AdTechIdentifier
```

<br />

*** ** * ** ***

An Identifier representing an ad buyer or seller.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier#AdTechIdentifier(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html identifier)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` Compares this AdTechIdentifier to the specified object. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier#getIdentifier()()` The identifier. |
| `int` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier#hashCode()()` Returns a hash code corresponding to the string representation of this class obtained by calling .toString. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/privacysandbox/ads/adservices/common/AdTechIdentifier#toString()()` |

## Public constructors

### AdTechIdentifier

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

```
public AdTechIdentifier(@NonNull String identifier)
```

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html identifier` | The identifier. |

## Public methods

### equals

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

Compares this AdTechIdentifier to the specified object. The result is true if and only if the argument is not null and the identifier property of the two objects are equal. Note that this method will not perform any eTLD+1 normalization so two AdTechIdentifier objects with the same eTLD+1 could be not equal if the String representations of the objects was not equal.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/Object.html other` | The object to compare this AdTechIdentifier against |

| Returns |
|---|---|
| `boolean` | true if the given object represents an AdTechIdentifier equivalent to this AdTechIdentifier, false otherwise |

### getIdentifier

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

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

The identifier.

### hashCode

```
public int hashCode()
```

Returns a hash code corresponding to the string representation of this class obtained by calling .toString. Note that this method will not perform any eTLD+1 normalization so two AdTechIdentifier objects with the same eTLD+1 could have different hash codes if the underlying string representation was different.

| Returns |
|---|---|
| `int` | a hash code value for this object. |

### toString

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

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | The identifier in String form. |