public static class Router.NavigationDirection
extends Object
Modifier and Type | Field | Description |
---|---|---|
(package private) int |
direction |
The direction a given NavigationDirection represents.
|
static String[] |
DIRECTIONS |
A mapping of integer values to directions.
|
(package private) double |
distance |
The distance along this way I represent.
|
static int |
LEFT |
|
static int |
NUM_DIRECTIONS |
Number of directions supported.
|
static int |
RIGHT |
|
static int |
SHARP_LEFT |
|
static int |
SHARP_RIGHT |
|
static int |
SLIGHT_LEFT |
|
static int |
SLIGHT_RIGHT |
|
static int |
START |
Integer constants representing directions.
|
static int |
STRAIGHT |
|
static String |
UNKNOWN_ROAD |
Default name for an unknown way.
|
(package private) String |
way |
The name of the way I represent.
|
Constructor | Description |
---|---|
NavigationDirection() |
Create a default, anonymous NavigationDirection.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
static Router.NavigationDirection |
fromString(String dirAsString) |
Takes the string representation of a navigation direction and converts it into
a Navigation Direction object.
|
int |
hashCode() |
|
String |
toString() |
public static final int START
public static final int STRAIGHT
public static final int SLIGHT_LEFT
public static final int SLIGHT_RIGHT
public static final int RIGHT
public static final int LEFT
public static final int SHARP_LEFT
public static final int SHARP_RIGHT
public static final int NUM_DIRECTIONS
public static final String[] DIRECTIONS
public static final String UNKNOWN_ROAD
int direction
String way
double distance
public NavigationDirection()
public String toString()
toString
in class Object
public static Router.NavigationDirection fromString(String dirAsString)
dirAsString
- The string representation of the NavigationDirection.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object