MCPcopy Create free account
hub / github.com/GateNLP/gate-core / add

Method add

src/main/java/gate/corpora/CorpusImpl.java:150–157  ·  view source on GitHub ↗
(int index, Document element)

Source from the content-addressed store, hash-verified

148 }
149
150 @Override
151 public void add(int index, Document element) {
152 data.add(index, element);
153
154 // fire the event
155 fireDocumentAdded(new CorpusEvent(CorpusImpl.this, element,
156 index, CorpusEvent.DOCUMENT_ADDED));
157 }
158
159 @Override
160 public Document remove(int index) {

Callers

nothing calls this directly

Calls 2

addMethod · 0.65
fireDocumentAddedMethod · 0.45

Tested by

no test coverage detected