# UpsertionChange

# UpsertionChange

Artifact:[androidx.health.connect:connect-client](https://developer.android.com/jetpack/androidx/releases/health-connect)  
[View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/changes/UpsertionChange.kt+class:androidx.health.connect.client.changes.UpsertionChange)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/health/connect/client/changes/UpsertionChange "View this page in Java")

<br />

```
class UpsertionChange : Change
```

<br />

*** ** * ** ***

A[Change](https://developer.android.com/reference/kotlin/androidx/health/connect/client/changes/Change)with inserted or updated[Record](https://developer.android.com/reference/kotlin/androidx/health/connect/client/records/Record).

## 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/health/connect/client/changes/UpsertionChange#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/health/connect/client/changes/UpsertionChange#hashCode())`()`                                                                                            |

|                                         ### Public properties                                          |
|--------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Record](https://developer.android.com/reference/kotlin/androidx/health/connect/client/records/Record) | [record](https://developer.android.com/reference/kotlin/androidx/health/connect/client/changes/UpsertionChange#record()) Updated or inserted record. |

## Public functions

### equals

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

### hashCode

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

## Public properties

### record

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)  

```
val record: Record
```

Updated or inserted record.