Lines Matching defs:element

37  * <tt>set(int index, E element)</tt>, <tt>add(int index, E element)</tt> and
78 * Returns the element at the specified position in this list.
81 * indexed element (with <tt>listIterator(index)</tt>). Then, it gets
82 * the element using <tt>ListIterator.next</tt> and returns it.
95 * Replaces the element at the specified position in this list with the
96 * specified element (optional operation).
99 * indexed element (with <tt>listIterator(index)</tt>). Then, it gets
100 * the current element using <tt>ListIterator.next</tt> and replaces it
113 public E set(int index, E element) {
117 e.set(element);
125 * Inserts the specified element at the specified position in this list
126 * (optional operation). Shifts the element currently at that position
131 * indexed element (with <tt>listIterator(index)</tt>). Then, it
132 * inserts the specified element with <tt>ListIterator.add</tt>.
144 public void add(int index, E element) {
146 listIterator(index).add(element);
153 * Removes the element at the specified position in this list (optional
155 * from their indices). Returns the element that was removed from the
159 * indexed element (with <tt>listIterator(index)</tt>). Then, it removes
160 * the element with <tt>ListIterator.remove</tt>.
186 * element currently at that position (if any) and any subsequent
195 * a list iterator over this list pointing to the indexed element (with
199 * <tt>ListIterator.next</tt> (to skip over the added element).
246 * @param index index of first element to be returned from the list