@Override public boolean add(E o) { checkForComod(); return super.add(o); }
@Override public boolean addFirst(E o) { checkForComod(); return super.addFirst(o); }
@Override public boolean addAll(Collection<? extends E> c) { checkForComod(); return super.addAll(c); }
/** * Returns the element at the specified position in this list. * * @param index index of element to return. * @return the element at the specified position in this list. * * @throws IndexOutOfBoundsException if the index is out of range (index * < 0 || index >= size()). */ public E get(int index) { return getListableAt(index).value(); }
@Override public Iterator<E> iterator() { checkForComod(); return super.iterator(); }
@Override public E removeFirst() { checkForComod(); return super.removeFirst(); }
@Override public boolean addLast(E o) { checkForComod(); return super.addLast(o); }
@Override public boolean remove(Object o) { checkForComod(); return super.remove(o); }
/** * Appends the specified element to the end of this list. * * @param o element to be appended to this list. * @return <tt>true</tt> */ public boolean add(E o) { insertListable(_head.prev(),null,o); return true; }
@Override public <T> T[] toArray(T a[]) { checkForComod(); return super.toArray(a); }
@Override public int hashCode() { checkForComod(); return super.hashCode(); }
@Override public E get(int index) { checkForComod(); return super.get(index); }
@Override public ListIterator<E> listIterator() { checkForComod(); return super.listIterator(); }
/** * Inserts the specified element at the beginning of this list. * (Equivalent to {@link #add(int,java.lang.Object) <tt>add(0,o)</tt>}). * * @param o element to be prepended to this list. * @return <tt>true</tt> */ public boolean addFirst(E o) { insertListable(null,_head.next(),o); return true; }
@Override public boolean equals(Object o) { checkForComod(); return super.equals(o); }
@Override public boolean contains(Object o) { checkForComod(); return super.contains(o); }
@Override public E getLast() { checkForComod(); return super.getLast(); }
@Override public List<E> subList(int fromIndex, int toIndex) { checkForComod(); return super.subList(fromIndex,toIndex); }
@Override public boolean addAll(int index, Collection<? extends E> c) { checkForComod(); return super.addAll(index,c); }
/** * Inserts the specified element at the end of this list. * (Equivalent to {@link #add(java.lang.Object)}). * * @param o element to be appended to this list. * @return <tt>true</tt> */ public boolean addLast(E o) { insertListable(_head.prev(),null,o); return true; }