# MappedNode

# MappedNode

Artifact:[androidx.glance:glance-testing](https://developer.android.com/jetpack/androidx/releases/glance)  
[View Source](https://cs.android.com/search?q=file:androidx/glance/testing/unit/GlanceMappedNode.kt+class:androidx.glance.testing.unit.MappedNode)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/glance#1.1.0)

<br />

```
class MappedNode
```

<br />

*** ** * ** ***

Hold a Glance composable node in a form that enables performing assertion on it.

\[MappedNode\]s are not rendered representations, but they map 1:1 to the composable nodes. They enable faster testing of the logic of composing Glance composable tree as part of unit tests.

## Summary

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/glance/testing/unit/MappedNode#toString())`()`                                                                                            |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

```
open fun hashCode(): Int
```  

### toString

```
open fun toString(): String
```