LocalField

public final class LocalField extends Object

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
equals(Object other)
int
getFormat()
Returns the format of the field, as one of the format constant values.
String
getName()
Returns the name of the field.
int
String

Inherited Method Summary

Constants

public static final int FORMAT_FLOAT

Format constant indicating the field holds float values.

Constant Value: 2

public static final int FORMAT_INT32

Format constant indicating the field holds integer values.

Constant Value: 1

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.

public int hashCode ()

public String toString ()