com.mapquest
Class LocationCollection
java.lang.Object
com.mapquest.MQObject
com.mapquest.MQObjectCollection
com.mapquest.LocationCollection
- All Implemented Interfaces:
- java.lang.Cloneable
- public class LocationCollection
- extends MQObjectCollection
Contains a collection of Location objects, usually Geocode results.
The Geocode results are in the form of GeoAddress
objects.
- See Also:
Location,
Address,
GeoAddress,
SingleLineAddress
|
Method Summary |
Location |
getAt(int index)
Returns the element at the specified position in this collection. |
int |
getClassId()
Returns the numeric id of this class. |
java.lang.String |
getClassName()
Returns the text name of this class. |
void |
init()
Initializes object. |
| 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 |
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
LocationCollection
public LocationCollection()
- Default constructor.
init
public void init()
- Initializes object.
- Overrides:
init in class MQObjectCollection
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.
getAt
public Location getAt(int index)
- Returns the element at the specified position in this collection.
Calls
get(int).
- Parameters:
index - index of element to return.
- Returns:
- Location at the specified index.
- See Also:
MQObjectCollection.get(int)