com.mapquest
Class IntCollection

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

public class IntCollection
extends ObjectCollection

Contains a collection of Integers.


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
IntCollection()
          Default constructor.
 
Method Summary
 void add(int value)
          Adds an int to the collection.
 void add(java.lang.Integer obj)
          Adds an Integer to the collection.
 void append(IntCollection collection)
          Appends one IntCollection to another.
 java.lang.Integer 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.
 java.lang.Integer item(int n)
          Deprecated. Use getAt(int) instead.
 
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

IntCollection

public IntCollection()
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(int value)
Adds an int to the collection.

Parameters:
value - The new int to be added to the collection.

add

public void add(java.lang.Integer obj)
Adds an Integer to the collection.

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

append

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

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

getAt

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

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

item

public java.lang.Integer item(int n)
Deprecated. Use getAt(int) instead.

Returns the nth item in the collection. Calls getAt(int).

Parameters:
n - Index of item within the collection which is to be returned.
Returns:
Integer value located at the nth position of the collection.
See Also:
getAt(int)