com.mapquest
Class DistanceUnits

java.lang.Object
  extended bycom.mapquest.DistanceUnits

public final class DistanceUnits
extends java.lang.Object

Constants to specify the type of units to use when calculating distance.


Field Summary
static DistanceUnits KiloMeters
          Deprecated. Use KILOMETERS instead.
static DistanceUnits KILOMETERS
           
static DistanceUnits Miles
          Deprecated. Use MILES instead.
static DistanceUnits MILES
           
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
static DistanceUnits from_int(int value)
          Deprecated. Use fromInt instead.
static DistanceUnits fromInt(int value)
          Creates an object from an integer value.
 int hashCode()
          Returns a hash code for this DistanceUnits.
 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

Miles

public static final DistanceUnits Miles
Deprecated. Use MILES instead.


KiloMeters

public static final DistanceUnits KiloMeters
Deprecated. Use KILOMETERS instead.


MILES

public static final DistanceUnits MILES

KILOMETERS

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


from_int

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

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

hashCode

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

Returns:
a hash code value for this DistanceUnits.