# WrappedMatchResult

Artifact: [androidx.navigation3:navigation3-runtime](https://developer.android.com/jetpack/androidx/releases/navigation3) [View Source](https://cs.android.com/search?q=file:androidx/navigation3/runtime/deeplink/WrappedMatchResult.kt+class:androidx.navigation3.runtime.deeplink.WrappedMatchResult) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/navigation3#1.2.0) Common/AllAndroid/JVM
- Cmn

  ```
  abstract class WrappedMatchResult<T : Any> : DeepLinkMatcher.MatchResult<T>
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult](https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult)\<T\> ||
|   | ↳ | [androidx.navigation3.runtime.deeplink.WrappedMatchResult](https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult) |

Known direct subclasses [BackStackMatchResult](https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/BackStackMatchResult)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/BackStackMatchResult` | Result returned when a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/BackStackMatcher` successfully matches a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkRequest`. |

*** ** * ** ***

A `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult` implementation that wraps another MatchResult.

This class can be used to create a MatchResult layered on top of another MatchResult without making changes to the wrapped one.

`https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult` The type of the navigation key associated with this result.

## Summary

| ### Public constructors |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html> https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#WrappedMatchResult(androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult)(matchResult: https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult<T>)` | Cmn |

| ### Public functions |
|---|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#compareTo(androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult)(other: https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult<T>)` Compares this `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult` to `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#compareTo(androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult)` and returns an Int result. | Cmn |

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult<T>` | `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#matchResult()` the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult` to wrap | Cmn |

### Inherited properties

From [androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult](https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult) `T` `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult#key()`

the navigation key representing the deep link target
Cmn

## Public constructors

### WrappedMatchResult

Cmn

```
<T : Any> WrappedMatchResult(matchResult: DeepLinkMatcher.MatchResult<T>)
```

| Parameters |
|---|---|
| `matchResult: https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult<T>` | the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult` to wrap |

## Public functions

### compareTo

Cmn

```
open operator fun compareTo(other: DeepLinkMatcher.MatchResult<T>): Int
```

Compares this `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult` to `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#compareTo(androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult)` and returns an Int result.

If `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#compareTo(androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult)` is also a WrappedMatchResult, compares this `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#matchResult()` with other.matchResult. Otherwise, compares this `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#matchResult()` with `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#compareTo(androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult)` directly.

Returns zero if this result is equal to the other result, a negative number if it's less, and a positive number if it's greater.

| Parameters |
|---|---|
| `other: https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult<T>` | the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult` to compare with |

## Public properties

### matchResult

Cmn Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/navigation3#1.2.0)

```
val matchResult: DeepLinkMatcher.MatchResult<T>
```

the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult` to wrap