Stay organized with collections
Save and categorize content based on your preferences.
public final class UpsertionChange implements Change
A Change
with inserted or updated Record
.
Summary
Public methods |
boolean |
|
final @NonNull Record |
Updated or inserted record.
|
int |
|
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["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\n[Kotlin](/reference/kotlin/androidx/health/connect/client/changes/UpsertionChange \"View this page in Kotlin\") \\|Java\n\n\n```\npublic final class UpsertionChange implements Change\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA [Change](/reference/androidx/health/connect/client/changes/Change) with inserted or updated [Record](/reference/androidx/health/connect/client/records/Record).\n\nSummary\n-------\n\n| ### Public methods |\n|---------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `boolean` | [equals](/reference/androidx/health/connect/client/changes/UpsertionChange#equals(kotlin.Any))`(`[Object](https://developer.android.com/reference/java/lang/Object.html)` other)` |\n| `final @`[NonNull](/reference/androidx/annotation/NonNull)` `[Record](/reference/androidx/health/connect/client/records/Record) | [getRecord](/reference/androidx/health/connect/client/changes/UpsertionChange#getRecord())`()` Updated or inserted record. |\n| `int` | [hashCode](/reference/androidx/health/connect/client/changes/UpsertionChange#hashCode())`()` |\n\nPublic methods\n--------------\n\n### equals\n\n```\npublic boolean equals(Object other)\n``` \n\n### getRecord\n\nAdded in [1.1.0](/jetpack/androidx/releases/health-connect#1.1.0) \n\n```\npublic final @NonNull Record getRecord()\n```\n\nUpdated or inserted record. \n\n### hashCode\n\n```\npublic int hashCode()\n```"]]