com.mapquest
Class RouteType

java.lang.Object
  extended bycom.mapquest.RouteType

public final class RouteType
extends java.lang.Object

Constants to specify the type of route wanted.


Field Summary
static RouteType Fastest
          Deprecated. Use FASTEST instead.
static RouteType FASTEST
           
static RouteType Optimized
          Deprecated. Use OPTIMIZED instead.
static RouteType OPTIMIZED
           
static RouteType Pedestrian
          Deprecated. Use PEDESTRIAN instead.
static RouteType PEDESTRIAN
           
static RouteType SELECT_DATASET_ONLY
           
static RouteType SelectDatasetOnly
          Deprecated. Use SELECT_DATASET_ONLY instead.
static RouteType Shortest
          Deprecated. Use SHORTEST instead.
static RouteType SHORTEST
           
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
static RouteType from_int(int value)
          Deprecated. Use fromInt instead.
static RouteType fromInt(int value)
          Creates an object from an integer value.
 int hashCode()
          Returns a hash code for this RouteType.
 int intValue()
          Returns an int type representing this object.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Fastest

public static final RouteType Fastest
Deprecated. Use FASTEST instead.


Shortest

public static final RouteType Shortest
Deprecated. Use SHORTEST instead.


Pedestrian

public static final RouteType Pedestrian
Deprecated. Use PEDESTRIAN instead.


Optimized

public static final RouteType Optimized
Deprecated. Use OPTIMIZED instead.


SelectDatasetOnly

public static final RouteType SelectDatasetOnly
Deprecated. Use SELECT_DATASET_ONLY instead.


FASTEST

public static final RouteType FASTEST

SHORTEST

public static final RouteType SHORTEST

PEDESTRIAN

public static final RouteType PEDESTRIAN

OPTIMIZED

public static final RouteType OPTIMIZED

SELECT_DATASET_ONLY

public static final RouteType SELECT_DATASET_ONLY
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this object.


intValue

public int intValue()
Returns an int type representing this object.


fromInt

public static RouteType fromInt(int value)
Creates an object from an integer value.


from_int

public static RouteType from_int(int value)
Deprecated. Use fromInt instead.

Creates an object from an integer value.


equals

public boolean equals(java.lang.Object otherObject)
Compares this object to the specified object. The result is true if and only if the argument is not null and is a RouteType object that has same attributes as this object.

Parameters:
otherObject - the object to compare this RouteType against.
Returns:
true if the RouteType objects are equal; false otherwise.

hashCode

public int hashCode()
Returns a hash code for this RouteType.

Returns:
a hash code value for this RouteType.