GARMIN CONFIDENTIAL v1.05.00


com.garmin.android.fleet.api
Class Speed

java.lang.Object
  extended by com.garmin.android.fleet.api.Speed
All Implemented Interfaces:
Serializable

public class Speed
extends Object
implements Serializable

An object that encapsulates speed information.

Since:
Garmin Fleet API 1.03
See Also:
Serialized Form

Nested Class Summary
static class Speed.Units
          This enumeration is used to specify the units of a speed measurement.
 
Field Summary
static int INVALID_SPEED
          An invalid speed value.
static Speed UNKNOWN_SPEED
          A default Speed object.
 
Constructor Summary
Speed(int speed, Speed.Units units)
          Create a Speed object that represents a given speed.
 
Method Summary
 int getSpeed()
          Returns the speed as an int value
 Speed.Units getUnits()
          Returns the units of speed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_SPEED

public static final int INVALID_SPEED
An invalid speed value. Used for initialization when a speed value is needed and one has not been specified.

Since:
Garmin Fleet API 1.03
See Also:
Constant Field Values

UNKNOWN_SPEED

public static final Speed UNKNOWN_SPEED
A default Speed object. Used for initialization when a Speed object is needed and one has not been specified.

Since:
Garmin Fleet API 1.03
Constructor Detail

Speed

public Speed(int speed,
             Speed.Units units)
Create a Speed object that represents a given speed.

Parameters:
speed - the speed
units - the units associated with speed
Since:
Garmin Fleet API 1.03
Method Detail

getSpeed

public int getSpeed()
Returns the speed as an int value

Returns:
the speed
Since:
Garmin Fleet API 1.03
See Also:
for the units of speed

getUnits

public Speed.Units getUnits()
Returns the units of speed

Returns:
the units of speed
Since:
Garmin Fleet API 1.03

GARMIN CONFIDENTIAL v1.05.00


Copyright (c) 2014-2016 by Garmin Ltd. or its subsidiaries