Lines Matching defs:element

14  * A linear collection that supports element insertion and removal at
23 * examine the element. Each of these methods exists in two forms:
100 * <td>{@link java.util.Queue#element element()}</td>
155 * element-based versions of the <tt>equals</tt> and <tt>hashCode</tt>
167 * Inserts the specified element at the front of this deque if it is
172 * @param e the element to add
173 * @throws IllegalStateException if the element cannot be added at this
175 * @throws ClassCastException if the class of the specified element
177 * @throws NullPointerException if the specified element is null and this
180 * element prevents it from being added to this deque
185 * Inserts the specified element at the end of this deque if it is
192 * @param e the element to add
193 * @throws IllegalStateException if the element cannot be added at this
195 * @throws ClassCastException if the class of the specified element
197 * @throws NullPointerException if the specified element is null and this
200 * element prevents it from being added to this deque
205 * Inserts the specified element at the front of this deque unless it would
208 * which can fail to insert an element only by throwing an exception.
210 * @param e the element to add
211 * @return <tt>true</tt> if the element was added to this deque, else
213 * @throws ClassCastException if the class of the specified element
215 * @throws NullPointerException if the specified element is null and this
218 * element prevents it from being added to this deque
223 * Inserts the specified element at the end of this deque unless it would
226 * which can fail to insert an element only by throwing an exception.
228 * @param e the element to add
229 * @return <tt>true</tt> if the element was added to this deque, else
231 * @throws ClassCastException if the class of the specified element
233 * @throws NullPointerException if the specified element is null and this
236 * element prevents it from being added to this deque
241 * Retrieves and removes the first element of this deque. This method
251 * Retrieves and removes the last element of this deque. This method
261 * Retrieves and removes the first element of this deque,
269 * Retrieves and removes the last element of this deque,
277 * Retrieves, but does not remove, the first element of this deque.
288 * Retrieves, but does not remove, the last element of this deque.
298 * Retrieves, but does not remove, the first element of this deque,
306 * Retrieves, but does not remove, the last element of this deque,
314 * Removes the first occurrence of the specified element from this deque.
315 * If the deque does not contain the element, it is unchanged.
316 * More formally, removes the first element <tt>e</tt> such that
318 * (if such an element exists).
319 * Returns <tt>true</tt> if this deque contained the specified element
322 * @param o element to be removed from this deque, if present
323 * @return <tt>true</tt> if an element was removed as a result of this call
324 * @throws ClassCastException if the class of the specified element
326 * @throws NullPointerException if the specified element is null and this
332 * Removes the last occurrence of the specified element from this deque.
333 * If the deque does not contain the element, it is unchanged.
334 * More formally, removes the last element <tt>e</tt> such that
336 * (if such an element exists).
337 * Returns <tt>true</tt> if this deque contained the specified element
340 * @param o element to be removed from this deque, if present
341 * @return <tt>true</tt> if an element was removed as a result of this call
342 * @throws ClassCastException if the class of the specified element
344 * @throws NullPointerException if the specified element is null and this
352 * Inserts the specified element into the queue represented by this deque
362 * @param e the element to add
364 * @throws IllegalStateException if the element cannot be added at this
366 * @throws ClassCastException if the class of the specified element
368 * @throws NullPointerException if the specified element is null and this
371 * element prevents it from being added to this deque
376 * Inserts the specified element into the queue represented by this deque
382 * insert an element only by throwing an exception.
386 * @param e the element to add
387 * @return <tt>true</tt> if the element was added to this deque, else
389 * @throws ClassCastException if the class of the specified element
391 * @throws NullPointerException if the specified element is null and this
394 * element prevents it from being added to this deque
400 * (in other words, the first element of this deque).
413 * (in other words, the first element of this deque), or returns
418 * @return the first element of this deque, or <tt>null</tt> if
425 * this deque (in other words, the first element of this deque).
434 E element();
438 * this deque (in other words, the first element of this deque), or
452 * Pushes an element onto the stack represented by this deque (in other
460 * @param e the element to push
461 * @throws IllegalStateException if the element cannot be added at this
463 * @throws ClassCastException if the class of the specified element
465 * @throws NullPointerException if the specified element is null and this
468 * element prevents it from being added to this deque
473 * Pops an element from the stack represented by this deque. In other
474 * words, removes and returns the first element of this deque.
478 * @return the element at the front of this deque (which is the top
488 * Removes the first occurrence of the specified element from this deque.
489 * If the deque does not contain the element, it is unchanged.
490 * More formally, removes the first element <tt>e</tt> such that
492 * (if such an element exists).
493 * Returns <tt>true</tt> if this deque contained the specified element
498 * @param o element to be removed from this deque, if present
499 * @return <tt>true</tt> if an element was removed as a result of this call
500 * @throws ClassCastException if the class of the specified element
502 * @throws NullPointerException if the specified element is null and this
508 * Returns <tt>true</tt> if this deque contains the specified element.
510 * at least one element <tt>e</tt> such that
513 * @param o element whose presence in this deque is to be tested
514 * @return <tt>true</tt> if this deque contains the specified element
515 * @throws ClassCastException if the type of the specified element
517 * @throws NullPointerException if the specified element is null and this