# UwbAddress

Artifact: [androidx.core.uwb:uwb](https://developer.android.com/jetpack/androidx/releases/core-uwb) [View Source](https://cs.android.com/search?q=file:androidx/core/uwb/UwbAddress.kt+class:androidx.core.uwb.UwbAddress) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core-uwb#1.0.0)

*** ** * ** ***


```
public final class UwbAddress
```

<br />

*** ** * ** ***

Represents a UWB address.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/core/uwb/UwbAddress#UwbAddress(kotlin.ByteArray)(@https://developer.android.com/reference/androidx/annotation/NonNull byte[] address)` |
| `https://developer.android.com/reference/androidx/core/uwb/UwbAddress#UwbAddress(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html address)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/core/uwb/UwbAddress#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` Checks that two UwbAddresses are equal. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull byte[]` | `https://developer.android.com/reference/androidx/core/uwb/UwbAddress#getAddress()()` the device address (eg, MAC address). |
| `int` | `https://developer.android.com/reference/androidx/core/uwb/UwbAddress#hashCode()()` Returns the hashcode. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/uwb/UwbAddress#toString()()` Returns the string format of `https://developer.android.com/reference/androidx/core/uwb/UwbAddress`. |

## Public constructors

### UwbAddress

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

```
public UwbAddress(@NonNull byte[] address)
```

### UwbAddress

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

```
public UwbAddress(@NonNull String address)
```

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if address is invalid. |

## Public methods

### equals

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

Checks that two UwbAddresses are equal.

### getAddress

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

```
public final @NonNull byte[] getAddress()
```

the device address (eg, MAC address).

### hashCode

```
public int hashCode()
```

Returns the hashcode.

### toString

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

Returns the string format of `https://developer.android.com/reference/androidx/core/uwb/UwbAddress`.