DataTypes

object DataTypes


Helper class to facilitate working with DataTypes.

Summary

Public methods

static final boolean

Check if a DataType will be aggregated as a cumulative value.

static final boolean

Check if a DataType will be aggregated as a statistical value.

Public methods

isCumulativeDataType

public static final boolean isCumulativeDataType(@NonNull DataType dataType)

Check if a DataType will be aggregated as a cumulative value.

Note: DataType.SWIMMING_LAP_COUNT already represents the total lap count, so it is not considered a cumulative data type.

isStatisticalDataType

public static final boolean isStatisticalDataType(@NonNull DataType dataType)

Check if a DataType will be aggregated as a statistical value.