As above, it is legal to add null elements to the array. Note also that null elements can be created as a side effect of insertElementAt(). Conversely, if insertElementAt() is never used, and null elements are never explicitly added to the array, then it is guaranteed that queryElementAt() will never return a null value.
Any of these methods may throw NS_ERROR_OUT_OF_MEMORY when the array must grow to complete the call, but the allocation fails.
Public Member Functions
|void||appendElement (in nsISupports element, in boolean weak)|
|unsigned long||indexOf (in unsigned long startIndex, in nsISupports element)|
|void||insertElementAt (in nsISupports element, in unsigned long index, in boolean weak)|
|void||queryElementAt (in unsigned long index, in nsIIDRef uuid,[iid_is(uuid), retval] out nsQIResult result)|
|void||removeElementAt (in unsigned long index)|
|void||replaceElementAt (in nsISupports element, in unsigned long index, in boolean weak)|
|NS_IMETHOD_ (nsrefcnt) Release(void)=0|
|NS_IMETHOD_ (nsrefcnt) AddRef(void)=0|
|NS_IMETHOD||QueryInterface (REFNSIID aIID, void **aInstancePtr)=0|
|readonly attribute unsigned long||length|