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,
    @NonNull Map<@NonNull DataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> supportedDebouncedGoals
)

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 Map<@NonNull DataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>>

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

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,
    @NonNull Map<@NonNull DataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> supportedDebouncedGoals
)

Public methods

getExerciseEventCapabilityDetails

Added in 1.1.0-alpha04
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.

getSupportedDebouncedGoals

Added in 1.1.0-alpha04
public final @NonNull Map<@NonNull DataType<@NonNull ?, @NonNull ?>, @NonNull Set<@NonNull ComparisonType>> getSupportedDebouncedGoals()

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

getSupportedExerciseEvents

Added in 1.1.0-alpha04
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()