return Collections.unmodifiableList(contex);
}
- public Publication getDocument (int index) {
+ public Publication getDocument (long l) {
// ------------------------------------------
for (Iterator<Publication> i=docums.iterator(); i.hasNext();) {
Publication found = i.next(); // In a given study step,
- if (found.value().getIndex() == index) return found; // there is only one publication of a given document
+ if (found.value().getIndex() == l) return found; // there is only one publication of a given document
}
return null;
}
return step;
}
- public SimulationContext getSimulationContext (int index) {
+ public SimulationContext getSimulationContext (long l) {
// ---------------------------------------------------------
for (Iterator<SimulationContext> i=owner.SimulationContextIterator(); i.hasNext();) {
SimulationContext myctex = i.next();
- if (myctex.getIndex() == index) return myctex;
+ if (myctex.getIndex() == l) return myctex;
}
return null;
}