|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mapquest.MQObject
com.mapquest.MQObjectCollection
An abstract collection of MQObject objects. Note that this implementation is not synchronized.
| 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 | |
MQObjectCollection()
Default constructor. |
|
| Method Summary | |
void |
add(MQObject obj)
Adds a MQObject to the collection. |
void |
append(MQObjectCollection collection)
Appends one MQObjectCollection to another. |
boolean |
equals(java.lang.Object otherObject)
Compares this object to the specified object. |
MQObject |
get(int index)
Returns the element at the specified position in this collection. |
int |
getSize()
Returns the number of components in this collection. |
int |
hashCode()
Returns a hash code for this MQObjectCollection. |
void |
init()
Initializes object. |
void |
remove(int index)
Deletes the component at the specified index. |
void |
removeAll()
Removes all components from this collection and sets its size to zero. |
void |
removeAt(int index)
Deprecated. Use remove(int) instead. |
| 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 |
public MQObjectCollection()
| Method Detail |
public void init()
init in class MQObjectpublic void add(MQObject obj)
obj - The new MQObject to be added to the collection.
java.lang.IllegalArgumentException - Invalid object for this collection.public void append(MQObjectCollection collection)
collection - The MQObjectCollection which is to be
added to "this" MQObjectCollection.get(int),
add(MQObject)public MQObject get(int index)
index - index of element to return.
java.lang.ArrayIndexOutOfBoundsException - index is out of range
(index < 0 || index >= getSize()).public void remove(int index)
index - The index of the object to remove.
java.lang.ArrayIndexOutOfBoundsException - index is out of range
(index < 0 || index >= getSize()).public void removeAt(int index)
remove(int) instead.
remove(int).
index - The index of the object to remove.remove(int)public void removeAll()
public int getSize()
public boolean equals(java.lang.Object otherObject)
equals in class MQObjectotherObject - the object to compare this MQObjectCollection against.
public int hashCode()
hashCode in class MQObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||