com.mapquest
Class RectSearchCriteria

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

public class RectSearchCriteria
extends SearchCriteria

Defines the criteria for a rectangle search. The rectangle to be searched is defined by the upper left and lower right corners of the rectangle.

See Also:
LatLng

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
RectSearchCriteria()
          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.
 LatLng getLowerRight()
          Gets the latitude/longitude of the lower right corner of this RectSearchCriteria object.
 LatLng getUpperLeft()
          Gets the latitude/longitude of the upper left corner of this RectSearchCriteria object.
 int hashCode()
          Returns a hash code for this RectSearchCriteria.
 void init()
          Initializes object.
 void setLowerRight(LatLng llLR)
          Sets the latitude/longitude of the lower right corner of this RectSearchCriteria object.
 void setUpperLeft(LatLng llUL)
          Sets the latitude/longitude of the upper left corner of this RectSearchCriteria object.
 
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

RectSearchCriteria

public RectSearchCriteria()
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.

setUpperLeft

public void setUpperLeft(LatLng llUL)
Sets the latitude/longitude of the upper left corner of this RectSearchCriteria object.

Parameters:
llUL - The latitude/longitude values to be assigned to the upper left corner of this object.

setLowerRight

public void setLowerRight(LatLng llLR)
Sets the latitude/longitude of the lower right corner of this RectSearchCriteria object.

Parameters:
llLR - The latitude/longitude values to be assigned to the lower right corner of this object.

getUpperLeft

public LatLng getUpperLeft()
Gets the latitude/longitude of the upper left corner of this RectSearchCriteria object.

Returns:
LatLng The latitude/longitude values to be assigned to the upper left corner of this object.

getLowerRight

public LatLng getLowerRight()
Gets the latitude/longitude of the lower right corner of this RectSearchCriteria object.

Returns:
LatLng The latitude/longitude values to be assigned to the lower right corner of this object.

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

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

hashCode

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

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