(E object)
| 92 | } |
| 93 | |
| 94 | public void add(E object) { |
| 95 | if (expectedModCount != modCount) { |
| 96 | throw new ConcurrentModificationException(); |
| 97 | } |
| 98 | |
| 99 | try { |
| 100 | AbstractList.this.add(size() - numLeft, object); |
| 101 | expectedModCount = modCount; |
| 102 | lastPosition = -1; |
| 103 | } catch (IndexOutOfBoundsException e) { |
| 104 | throw new NoSuchElementException(); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | public boolean hasPrevious() { |
| 109 | return numLeft < size(); |