com.garmin.fit
Enum Fit.ProtocolVersion

java.lang.Object
  extended by java.lang.Enum<Fit.ProtocolVersion>
      extended by com.garmin.fit.Fit.ProtocolVersion
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Fit.ProtocolVersion>
Enclosing class:
Fit

public static enum Fit.ProtocolVersion
extends java.lang.Enum<Fit.ProtocolVersion>


Enum Constant Summary
V1_0
           
V2_0
           
 
Method Summary
static Fit.ProtocolVersion getHighestVersion()
           
 int getMajor()
           
 int getMinor()
           
 int getVersion()
           
static Fit.ProtocolVersion valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Fit.ProtocolVersion[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

V1_0

public static final Fit.ProtocolVersion V1_0

V2_0

public static final Fit.ProtocolVersion V2_0
Method Detail

values

public static Fit.ProtocolVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Fit.ProtocolVersion c : Fit.ProtocolVersion.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Fit.ProtocolVersion valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getVersion

public int getVersion()

getMajor

public int getMajor()

getMinor

public int getMinor()

getHighestVersion

public static Fit.ProtocolVersion getHighestVersion()