ExerciseTypeCapabilities

public final class ExerciseTypeCapabilities


Provides exercise specific capabilities data.

Summary

Public constructors

ExerciseTypeCapabilities(
    @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> supportedDataTypes,
    @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> supportedGoals,
    @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> supportedMilestones,
    boolean supportsAutoPauseAndResume,
    @NonNull Map<@NonNull ExerciseEventType<@NonNull ?>, @NonNull ExerciseEventCapabilities> exerciseEventCapabilities
)

Public methods

final C

Returns the ExerciseEventCapabilities for a requested ExerciseEventType.

final @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>>

Supported DataTypes for a given exercise.

final @NonNull Set<@NonNull ExerciseEventType<@NonNull ?>>

Returns the set of supported ExerciseEventTypes on this device.

final @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>>

Map from supported goals DataTypes to a set of compatible ComparisonTypes.

final @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>>

Map from supported milestone DataTypes to a set of compatible ComparisonTypes.

final boolean

Returns true if the given exercise supports auto pause and resume.

@NonNull String

Public constructors

ExerciseTypeCapabilities

public ExerciseTypeCapabilities(
    @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> supportedDataTypes,
    @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> supportedGoals,
    @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> supportedMilestones,
    boolean supportsAutoPauseAndResume,
    @NonNull Map<@NonNull ExerciseEventType<@NonNull ?>, @NonNull ExerciseEventCapabilities> exerciseEventCapabilities
)

Public methods

getExerciseEventCapabilityDetails

Added in 1.1.0-alpha02
public final C <C extends ExerciseEventCapabilities> getExerciseEventCapabilityDetails(
    @NonNull ExerciseEventType<@NonNull C> exerciseEventType
)

Returns the ExerciseEventCapabilities for a requested ExerciseEventType.

getSupportedDataTypes

Added in 1.0.0
public final @NonNull Set<@NonNull DataType<@NonNull ?, @NonNull ?>> getSupportedDataTypes()

Supported DataTypes for a given exercise.

getSupportedExerciseEvents

Added in 1.1.0-alpha02
public final @NonNull Set<@NonNull ExerciseEventType<@NonNull ?>> getSupportedExerciseEvents()

Returns the set of supported ExerciseEventTypes on this device.

getSupportedGoals

Added in 1.0.0
public final @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> getSupportedGoals()

Map from supported goals DataTypes to a set of compatible ComparisonTypes.

getSupportedMilestones

Added in 1.0.0
public final @NonNull Map<@NonNull AggregateDataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> getSupportedMilestones()

Map from supported milestone DataTypes to a set of compatible ComparisonTypes.

getSupportsAutoPauseAndResume

Added in 1.0.0
public final boolean getSupportsAutoPauseAndResume()

Returns true if the given exercise supports auto pause and resume.

toString

public @NonNull String toString()