LocalDataSet
Stay organized with collections
Save and categorize content based on your preferences.
Represents a fixed set of LocalDataPoint
s
in a LocalDataType
's
stream. A data set represents data at fixed time boundaries and is the result of read
requests.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Methods
public boolean equals (Object other)
Returns the list of data points represented by this data set. The data points will
preserve the same order in which they were inserted.
Returns the data type this data set represents. All of the data points in the data
set are of this data type.
public boolean isEmpty ()
Returns whether this data set contains no data points.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 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 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eLocalDataSet\u003c/code\u003e represents a fixed collection of \u003ccode\u003eLocalDataPoint\u003c/code\u003e objects within a specific \u003ccode\u003eLocalDataType\u003c/code\u003e stream.\u003c/p\u003e\n"],["\u003cp\u003eIt's primarily used to hold data retrieved from read requests, organized with fixed time boundaries.\u003c/p\u003e\n"],["\u003cp\u003eYou can access the data points, data type, and check for emptiness using its public methods.\u003c/p\u003e\n"],["\u003cp\u003eThe data points within a \u003ccode\u003eLocalDataSet\u003c/code\u003e maintain the order in which they were initially added.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLocalDataSet\u003c/code\u003e provides methods like \u003ccode\u003eequals\u003c/code\u003e, \u003ccode\u003ehashCode\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e for object comparison and representation.\u003c/p\u003e\n"]]],["`LocalDataSet` represents a fixed set of `LocalDataPoint`s within a `LocalDataType` stream. It provides methods to retrieve the data points via `getDataPoints()`, determine the `LocalDataType` with `getDataType()`, and check for emptiness using `isEmpty()`. You can also test for equality with `equals()`, generate a hash code via `hashCode()`, and get a string representation using `toString()`. These methods allow interaction and data verification for data points within the set.\n"],null,["# LocalDataSet\n\npublic final class **LocalDataSet** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nRepresents a fixed set of [LocalDataPoint](/android/reference/com/google/android/gms/fitness/data/LocalDataPoint)s\nin a [LocalDataType](/android/reference/com/google/android/gms/fitness/data/LocalDataType)'s\nstream. A data set represents data at fixed time boundaries and is the result of read\nrequests. \n\n### Public Method Summary\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/android/reference/com/google/android/gms/fitness/data/LocalDataSet#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) other) |\n| [List](//developer.android.com/reference/java/util/List.html)\\\u003c[LocalDataPoint](/android/reference/com/google/android/gms/fitness/data/LocalDataPoint)\\\u003e | [getDataPoints](/android/reference/com/google/android/gms/fitness/data/LocalDataSet#getDataPoints())() Returns the list of data points represented by this data set. |\n| [LocalDataType](/android/reference/com/google/android/gms/fitness/data/LocalDataType) | [getDataType](/android/reference/com/google/android/gms/fitness/data/LocalDataSet#getDataType())() Returns the data type this data set represents. |\n| int | [hashCode](/android/reference/com/google/android/gms/fitness/data/LocalDataSet#hashCode())() |\n| boolean | [isEmpty](/android/reference/com/google/android/gms/fitness/data/LocalDataSet#isEmpty())() Returns whether this data set contains no data points. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [toString](/android/reference/com/google/android/gms/fitness/data/LocalDataSet#toString())() |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) other)\n\n#### public [List](//developer.android.com/reference/java/util/List.html)\\\u003c[LocalDataPoint](/android/reference/com/google/android/gms/fitness/data/LocalDataPoint)\\\u003e\n**getDataPoints** ()\n\nReturns the list of data points represented by this data set. The data points will\npreserve the same order in which they were inserted. \n\n#### public [LocalDataType](/android/reference/com/google/android/gms/fitness/data/LocalDataType)\n**getDataType** ()\n\nReturns the data type this data set represents. All of the data points in the data\nset are of this data type. \n\n#### public int **hashCode** ()\n\n#### public boolean **isEmpty** ()\n\nReturns whether this data set contains no data points. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **toString** ()"]]