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 withFIELD_
.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 finalLocalField | FIELD_CALORIES | Calories in kcal. |
public static finalLocalField | FIELD_DISTANCE | A distance in meters. |
public static finalLocalField | FIELD_STEPS | A count of steps. |
Public Method Summary
boolean | |
int |
getFormat()
Returns the format of the field, as one of the format constant values.
|
String |
getName()
Returns the name of the field.
|
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 isFORMAT_FLOAT
.
public static final LocalField FIELD_DISTANCE
A distance in meters.
Format isFORMAT_FLOAT
.
public static final LocalField FIELD_STEPS
A count of steps.
Format isFORMAT_INT32
.
Public Methods
public booleanequals(Objectother)
public intgetFormat()
Returns the format of the field, as one of the format constant values.
publicStringgetName()
Returns the name of the field.