|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mapquest.MQObject
com.mapquest.ObjectCollection
An abstract collection of Object 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 | |
ObjectCollection()
Default constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object otherObject)
Compares this object to the specified object. |
java.lang.Object |
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 ObjectCollection. |
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 ObjectCollection()
| Method Detail |
public void init()
init in class MQObjectpublic java.lang.Object 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 ObjectCollection against.
public int hashCode()
hashCode in class MQObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||