Lines Matching defs:array

387      * Returns an array containing all of the elements in this queue.
388 * The returned array elements are in no particular order.
390 * <p>The returned array will be "safe" in that no references to it are
392 * a new array). The caller is thus free to modify the returned array.
394 * <p>This method acts as bridge between array-based and collection-based
397 * @return an array containing all of the elements in this queue
410 * Returns an array containing all of the elements in this queue; the
411 * runtime type of the returned array is that of the specified array.
412 * The returned array elements are in no particular order.
413 * If the queue fits in the specified array, it is returned therein.
414 * Otherwise, a new array is allocated with the runtime type of the
415 * specified array and the size of this queue.
417 * <p>If this queue fits in the specified array with room to spare
418 * (i.e., the array has more elements than this queue), the element in
419 * the array immediately following the end of the queue is set to
423 * array-based and collection-based APIs. Further, this method allows
424 * precise control over the runtime type of the output array, and may,
428 * allocated array of {@code Delayed}:
435 * @param a the array into which the elements of the queue are to
436 * be stored, if it is big enough; otherwise, a new array of the
438 * @return an array containing all of the elements in this queue
439 * @throws ArrayStoreException if the runtime type of the specified array
442 * @throws NullPointerException if the specified array is null
501 * Snapshot iterator that works off copy of underlying q array.
504 final Object[] array; // Array of all elements
508 Itr(Object[] array) {
510 this.array = array;
514 return cursor < array.length;
519 if (cursor >= array.length)
522 return (E)array[cursor++];
528 removeEQ(array[lastRet]);