/** * Sets the model of this group. Once a model has been set, no * more positions can be added and the model cannot be changed. */ void seal() { Assert.isTrue(!fIsSealed); fIsSealed= true; if (fHasCustomIteration == false && fPositions.size() > 0) { fPositions.get(0).setSequenceNumber(0); } }
/** * Sets the model of this group. Once a model has been set, no * more positions can be added and the model cannot be changed. */ void seal() { Assert.isTrue(!fIsSealed); fIsSealed= true; if (fHasCustomIteration == false && fPositions.size() > 0) { fPositions.get(0).setSequenceNumber(0); } }
for (LinkedPosition position : sortPositions(linkedPositions, invocationOffset)) { try { position.setSequenceNumber(i); i++; group.addPosition(position);