Stay organized with collections
Save and categorize content based on your preferences.
class UpsertionChange : Change
A Change
with inserted or updated Record
.
Summary
Public properties |
Record |
Updated or inserted record.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-30 UTC.
[null,null,["Last updated 2025-07-30 UTC."],[],[],null,["# UpsertionChange\n===============\n\nArtifact: [androidx.health.connect:connect-client](/jetpack/androidx/releases/health-connect) \n[View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/changes/UpsertionChange.kt+class:androidx.health.connect.client.changes.UpsertionChange) \nAdded in [1.1.0](/jetpack/androidx/releases/health-connect#1.1.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/health/connect/client/changes/UpsertionChange \"View this page in Java\")\n\n\n```\nclass UpsertionChange : Change\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA [Change](/reference/kotlin/androidx/health/connect/client/changes/Change) with inserted or updated [Record](/reference/kotlin/androidx/health/connect/client/records/Record).\n\nSummary\n-------\n\n| ### Public functions |\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](/reference/kotlin/androidx/health/connect/client/changes/UpsertionChange#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |\n| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [hashCode](/reference/kotlin/androidx/health/connect/client/changes/UpsertionChange#hashCode())`()` |\n\n| ### Public properties |\n|---------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| [Record](/reference/kotlin/androidx/health/connect/client/records/Record) | [record](/reference/kotlin/androidx/health/connect/client/changes/UpsertionChange#record()) Updated or inserted record. |\n\nPublic functions\n----------------\n\n### equals\n\n```\nopen operator fun equals(other: Any?): Boolean\n``` \n\n### hashCode\n\n```\nopen fun hashCode(): Int\n``` \n\nPublic properties\n-----------------\n\n### record\n\nAdded in [1.1.0](/jetpack/androidx/releases/health-connect#1.1.0) \n\n```\nval record: Record\n```\n\nUpdated or inserted record."]]