com.mapquest
Class StringCollection

java.lang.Object
  extended bycom.mapquest.MQObject
      extended bycom.mapquest.ObjectCollection
          extended bycom.mapquest.StringCollection
All Implemented Interfaces:
java.lang.Cloneable

public class StringCollection
extends ObjectCollection

Contains a collection of String objects.


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
StringCollection()
          Default constructor.
 
Method Summary
 void add(java.lang.String obj)
          Adds a String to the collection.
 void append(StringCollection collection)
          Appends one StringCollection to another.
 java.lang.String 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.ObjectCollection
equals, get, getSize, hashCode, remove, removeAll, removeAt
 
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

StringCollection

public StringCollection()
Default constructor.

Method Detail

init

public void init()
Initializes object.

Overrides:
init in class ObjectCollection

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.

add

public void add(java.lang.String obj)
Adds a String to the collection.

Parameters:
obj - The new String to be added to the collection.

append

public void append(StringCollection collection)
Appends one StringCollection to another.

Parameters:
collection - The StringCollection which is to be added to "this" StringCollection.

getAt

public java.lang.String getAt(int index)
Returns the element at the specified position in this collection. Calls get(int).

Parameters:
index - index of element to return.
Returns:
String at the specified index.
See Also:
ObjectCollection.get(int)