Package com.dsi.ant
Enum Class AntService.Component
- All Implemented Interfaces:
Serializable
,Comparable<AntService.Component>
,Constable
- Enclosing class:
AntService
Used internally by the API. All the possible components that AntService
can retrieve from the ANT Radio Service.
- Since:
- 4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionResponsible for providing hardware information to applications.Responsible for providing ANT channels to applications.The Component if the received component from ANT Radio Service is not supported in this version of the API. -
Method Summary
Modifier and TypeMethodDescriptionstatic AntService.Component
create
(int rawValue) Used internally by the API to create a Component from a raw value received from ANT Radio Service.int
Returns the raw value of this Component.static AntService.Component
Returns the enum constant of this class with the specified name.static AntService.Component[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID
The Component if the received component from ANT Radio Service is not supported in this version of the API.- Since:
- 4.0
-
CHANNEL_PROVIDER
Responsible for providing ANT channels to applications.- Since:
- 4.0
-
ADAPTER_PROVIDER
Responsible for providing hardware information to applications.- Since:
- 4.7.2
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getRawValue
public int getRawValue()Returns the raw value of this Component. Used internally by the API to specify which component to retrieve.- Since:
- 4.0
-
create
Used internally by the API to create a Component from a raw value received from ANT Radio Service. Applications must use the methods provided inAntService
such asAntService.getChannelProvider()
to retrieve components.- Since:
- 4.0
-