/** * Return the specified add. */ private Object getAdd(int index) { return this.getAdds().get(index); }
/** * The specified change set was added earlier; * cancel it out. */ private void cancelAddedChangeSet(Object changeSet) { int changeSetIndex = this.getAddsIndexOf(changeSet); if (changeSetIndex == -1) { throw new IllegalStateException(changeSet.toString()); } this.getAdds().remove(changeSetIndex); this.setAddIndexes(this.removeFrom(changeSetIndex, this.getAddIndexes())); }
/** * The specified change set was added earlier; * cancel it out. */ private void cancelAddedChangeSet(Object changeSet) { int changeSetIndex = this.getAddsIndexOf(changeSet); if (changeSetIndex == -1) { throw new IllegalStateException(changeSet.toString()); } this.getAdds().remove(changeSetIndex); this.setAddIndexes(this.removeFrom(changeSetIndex, this.getAddIndexes())); }
/** * Return the specified add. */ private Object getAdd(int index) { return this.getAdds().get(index); }
/** * The specified change set was added earlier; * cancel it out. */ private void cancelAddedChangeSet(Object changeSet) { int changeSetIndex = this.getAddsIndexOf(changeSet); if (changeSetIndex == -1) { throw new IllegalStateException(changeSet.toString()); } this.getAdds().remove(changeSetIndex); this.setAddIndexes(this.removeFrom(changeSetIndex, this.getAddIndexes())); }
/** * Return the specified add. */ private Object getAdd(int index) { return this.getAdds().get(index); }
/** * Add an added change set. */ public void addAddedChangeSet(Object changeSet, int index) { getAdds().add(changeSet); setAddIndexes(this.addTo(index, getAddIndexes())); }
/** * Add an added change set. */ public void addAddedChangeSet(Object changeSet, int index) { this.getAdds().addElement(changeSet); this.setAddIndexes(this.addTo(index, this.getAddIndexes())); }
/** * Add an added change set. */ public void addAddedChangeSet(Object changeSet, int index) { getAdds().add(changeSet); setAddIndexes(this.addTo(index, getAddIndexes())); }