com.mapquest
Class QualityType

java.lang.Object
  extended bycom.mapquest.QualityType

public final class QualityType
extends java.lang.Object

Constants to specify the type of geocode results wanted.


Field Summary
static QualityType APPROX
          Attempts to return approximate results.
static QualityType EXACT
          Attempts to return only exact matches (succeeds if only one match found).
static QualityType GOOD
          Attempts to return good results.
static QualityType QT_APPROX
          Deprecated. Use APPROX instead.
static QualityType QT_EXACT
          Deprecated. Use EXACT instead.
static QualityType QT_GOOD
          Deprecated. Use GOOD instead.
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
static QualityType from_int(int value)
          Deprecated. Use fromInt instead.
static QualityType fromInt(int value)
          Creates an object from an integer value.
 int hashCode()
          Returns a hash code for this QualityType.
 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

QT_EXACT

public static final QualityType QT_EXACT
Deprecated. Use EXACT instead.

Attempts to return only exact matches (succeeds if only one match found). Generally this mode would be used for batch geocoding.


QT_GOOD

public static final QualityType QT_GOOD
Deprecated. Use GOOD instead.

Attempts to return good results.


QT_APPROX

public static final QualityType QT_APPROX
Deprecated. Use APPROX instead.

Attempts to return approximate results.


EXACT

public static final QualityType EXACT
Attempts to return only exact matches (succeeds if only one match found). Generally this mode would be used for batch geocoding.


GOOD

public static final QualityType GOOD
Attempts to return good results.


APPROX

public static final QualityType APPROX
Attempts to return approximate results.

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 QualityType fromInt(int value)
Creates an object from an integer value.


from_int

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

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

hashCode

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

Returns:
a hash code value for this QualityType.