(int index, Document element)
| 136 | } |
| 137 | |
| 138 | @Override |
| 139 | public Document set(int index, Document element) { |
| 140 | Document oldDoc = data.set(index, element); |
| 141 | |
| 142 | // fire the 2 events |
| 143 | fireDocumentRemoved(new CorpusEvent(CorpusImpl.this, oldDoc, index, |
| 144 | CorpusEvent.DOCUMENT_REMOVED)); |
| 145 | fireDocumentAdded(new CorpusEvent(CorpusImpl.this, element, index, |
| 146 | CorpusEvent.DOCUMENT_ADDED)); |
| 147 | return oldDoc; |
| 148 | } |
| 149 | |
| 150 | @Override |
| 151 | public void add(int index, Document element) { |
nothing calls this directly
no test coverage detected