com.mapquest
Class Location

java.lang.Object
  extended bycom.mapquest.MQObject
      extended bycom.mapquest.Location
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
Address, SingleLineAddress

public abstract class Location
extends MQObject

Contains properties common to both Address and SingleLineAddress objects.


Field Summary
 
Fields inherited from class com.mapquest.MQObject
CLASS_ID, CLASS_NAME, DEFAULT_ID, DEFAULT_NAME, DEFAULT_VERSION, FORMAT_NUMERIC_ID, FORMAT_TEXT_NAME, INVALID_ID, INVALID_NAME, INVALID_VERSION
 
Constructor Summary
Location()
          Default constructor.
Location(Location copy)
          Copy constructor.
 
Method Summary
 boolean equals(java.lang.Object otherObject)
          Compares this object to the specified object.
 int hashCode()
          Returns a hash code for this Location.
 void init()
          Initializes object.
 
Methods inherited from class com.mapquest.MQObject
clone, getClassId, getClassName, getFormat, getIdWithVersion, getNameWithVersion, getObjectVersion, getTypeId, getTypeName, getVerboseConsoleOutput, setFormat, setObjectVersion, setVerboseConsoleOutput, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location()
Default constructor.


Location

public Location(Location copy)
Copy constructor.

Parameters:
copy - The Location object that this object is to be set to.
Method Detail

init

public void init()
Initializes object.

Overrides:
init in class MQObject

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

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

hashCode

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

Overrides:
hashCode in class MQObject
Returns:
a hash code value for this Location.