com.mapquest
Class RouteResultsCode

java.lang.Object
  extended bycom.mapquest.RouteResultsCode

public final class RouteResultsCode
extends java.lang.Object

Constants used to define return codes from a doRoute call.


Field Summary
static RouteResultsCode INVALID_LOCATION
           
static RouteResultsCode InvalidLocation
          Deprecated. Use INVALID_LOCATION instead.
static RouteResultsCode NO_DATASET_FOUND
           
static RouteResultsCode NoDatasetFound
          Deprecated. Use NO_DATASET_FOUND instead.
static RouteResultsCode NOT_SPECIFIED
           
static RouteResultsCode NotSpecified
          Deprecated. Use NOT_SPECIFIED instead.
static RouteResultsCode ROUTE_FAILURE
           
static RouteResultsCode RouteFailure
          Deprecated. Use ROUTE_FAILURE instead.
static RouteResultsCode Success
          Deprecated. Use SUCCESS instead.
static RouteResultsCode SUCCESS
           
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
static RouteResultsCode from_int(int value)
          Deprecated. Use fromInt instead.
static RouteResultsCode fromInt(int value)
          Creates an object from an integer value.
 int hashCode()
          Returns a hash code for this RouteResultsCode.
 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

NotSpecified

public static final RouteResultsCode NotSpecified
Deprecated. Use NOT_SPECIFIED instead.


Success

public static final RouteResultsCode Success
Deprecated. Use SUCCESS instead.


InvalidLocation

public static final RouteResultsCode InvalidLocation
Deprecated. Use INVALID_LOCATION instead.


RouteFailure

public static final RouteResultsCode RouteFailure
Deprecated. Use ROUTE_FAILURE instead.


NoDatasetFound

public static final RouteResultsCode NoDatasetFound
Deprecated. Use NO_DATASET_FOUND instead.


NOT_SPECIFIED

public static final RouteResultsCode NOT_SPECIFIED

SUCCESS

public static final RouteResultsCode SUCCESS

INVALID_LOCATION

public static final RouteResultsCode INVALID_LOCATION

ROUTE_FAILURE

public static final RouteResultsCode ROUTE_FAILURE

NO_DATASET_FOUND

public static final RouteResultsCode NO_DATASET_FOUND
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 RouteResultsCode fromInt(int value)
Creates an object from an integer value.


from_int

public static RouteResultsCode 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 RouteResultsCode object that has same attributes as this object.

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

hashCode

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

Returns:
a hash code value for this RouteResultsCode.