AI-generated Key Takeaways
-
A
LocalFieldrepresents one dimension of a data type, defining its name and format. -
The class contains constants like
FIELD_CALORIES,FIELD_DISTANCE, andFIELD_STEPSto access data fields. -
LocalFieldincludes format constants such asFORMAT_FLOATandFORMAT_INT32to indicate the data type. -
You can retrieve the format and name of a field using the
getFormat()andgetName()methods.
A field represents one dimension of a data type. It defines the name and format of data.
This class contains constants representing the field names of common data types, each
prefixed with FIELD_
. These can be used to access the fields via LocalDataPoint.getValue(LocalField)
.
Constant Summary
| int | FORMAT_FLOAT | Format constant indicating the field holds float values. |
| int | FORMAT_INT32 | Format constant indicating the field holds integer values. |
Field Summary
| public static final LocalField | FIELD_CALORIES | Calories in kcal. |
|---|---|---|
|
public static final LocalField
|
FIELD_DISTANCE | A distance in meters. |
|
public static final LocalField
|
FIELD_STEPS | A count of steps. |
Public Method Summary
| boolean | |
| int | |
| String | |
| int | hashCode
()
|
| String | toString
()
|
Inherited Method Summary
Constants
public static final int FORMAT_FLOAT
Format constant indicating the field holds float values.
public static final int FORMAT_INT32
Format constant indicating the field holds integer values.
Fields
public static final LocalField FIELD_CALORIES
Calories in kcal.
Format is FORMAT_FLOAT
.
public static final LocalField FIELD_DISTANCE
A distance in meters.
Format is FORMAT_FLOAT
.
public static final LocalField FIELD_STEPS
A count of steps.
Format is FORMAT_INT32
.
Public Methods
public boolean equals ( Object other)
public int getFormat ()
Returns the format of the field, as one of the format constant values.
public String getName ()
Returns the name of the field.

