com.mapquest
Class PolySearchCriteria

java.lang.Object
  extended bycom.mapquest.MQObject
      extended bycom.mapquest.SearchCriteria
          extended bycom.mapquest.PolySearchCriteria
All Implemented Interfaces:
java.lang.Cloneable

public class PolySearchCriteria
extends SearchCriteria

Defines the criteria for a radius search. The radius to be searched is defined by the latitude/longitude of the Center and the radius of the circle.

See Also:
LatLngCollection

Field Summary
static int CLASS_ID
           
static java.lang.String CLASS_NAME
           
 
Fields inherited from class com.mapquest.MQObject
DEFAULT_ID, DEFAULT_NAME, DEFAULT_VERSION, FORMAT_NUMERIC_ID, FORMAT_TEXT_NAME, INVALID_ID, INVALID_NAME, INVALID_VERSION
 
Constructor Summary
PolySearchCriteria()
          Default constructor.
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
 int getClassId()
          Returns the numeric id of this class.
 java.lang.String getClassName()
          Returns the text name of this class.
 LatLngCollection getShapePoints()
          Returns the array of shape points in LatLngs used to form the bounding polygon to search.
 int hashCode()
          Returns a hash code for this PolySearchCriteria.
 void init()
          Initializes object.
 void setShapePoints(LatLngCollection lla)
          Empties the array of shape points in LatLngs used to form the bounding polygon to search and adds the members of the passed-in array.
 
Methods inherited from class com.mapquest.SearchCriteria
getMaxMatches, setMaxMatches
 
Methods inherited from class com.mapquest.MQObject
clone, getFormat, getIdWithVersion, getNameWithVersion, getObjectVersion, getTypeId, getTypeName, getVerboseConsoleOutput, setFormat, setObjectVersion, setVerboseConsoleOutput, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_ID

public static final int CLASS_ID
See Also:
Constant Field Values

CLASS_NAME

public static final java.lang.String CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

PolySearchCriteria

public PolySearchCriteria()
Default constructor.

Method Detail

init

public void init()
Initializes object.

Overrides:
init in class SearchCriteria

getClassId

public int getClassId()
Returns the numeric id of this class.

Overrides:
getClassId in class MQObject
Returns:
the numeric id of this class.

getClassName

public java.lang.String getClassName()
Returns the text name of this class.

Overrides:
getClassName in class MQObject
Returns:
the text name of this class.

getShapePoints

public LatLngCollection getShapePoints()
Returns the array of shape points in LatLngs used to form the bounding polygon to search.

Returns:
LatLngCollection of shape points.

setShapePoints

public void setShapePoints(LatLngCollection lla)
Empties the array of shape points in LatLngs used to form the bounding polygon to search and adds the members of the passed-in array.

Parameters:
lla - new LatLngCollection of shape points.

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

Overrides:
equals in class SearchCriteria
Parameters:
otherObject - the object to compare this PolySearchCriteria against.
Returns:
true if the PolySearchCriteria objects are equal; false otherwise.

hashCode

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

Overrides:
hashCode in class SearchCriteria
Returns:
a hash code value for this PolySearchCriteria.