|
GARMIN CONFIDENTIAL v1.05.00 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.garmin.android.fleet.api.Speed
public class Speed
An object that encapsulates speed information.
| 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 |
|---|
public static final int INVALID_SPEED
public static final Speed UNKNOWN_SPEED
| Constructor Detail |
|---|
public Speed(int speed,
Speed.Units units)
speed - the speedunits - the units associated with speed| Method Detail |
|---|
public int getSpeed()
for the units of speedpublic Speed.Units getUnits()
|
GARMIN CONFIDENTIAL v1.05.00 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (c) 2014-2016 by Garmin Ltd. or its subsidiaries