/** * Attempt to restore the specified change set. * Return true if the change set was removed earlier * and was successfully restored to the end of * the collection. */ private boolean restoreRemovedChangeSet(Object changeSet) { int changeSetIndex = this.getRemovesIndexOf(changeSet); if (changeSetIndex == -1) { return false; } this.getRemoves().remove(changeSetIndex); int removeIndex = this.getRemoveIndex(changeSetIndex); this.setRemoveIndexes(this.removeFrom(changeSetIndex, this.getRemoveIndexes())); // now move the change set over to the collection of moves this.addMovedChangeSet(changeSet, removeIndex, this.getNewCollectionSize()); return true; }
/** * Attempt to restore the specified change set. * Return true if the change set was removed earlier * and was successfully restored to the end of * the collection. */ private boolean restoreRemovedChangeSet(Object changeSet) { int changeSetIndex = this.getRemovesIndexOf(changeSet); if (changeSetIndex == -1) { return false; } this.getRemoves().remove(changeSetIndex); int removeIndex = this.getRemoveIndex(changeSetIndex); this.setRemoveIndexes(this.removeFrom(changeSetIndex, this.getRemoveIndexes())); // now move the change set over to the collection of moves this.addMovedChangeSet(changeSet, removeIndex, this.getNewCollectionSize()); return true; }
/** * Attempt to restore the specified change set. * Return true if the change set was removed earlier * and was successfully restored to the end of * the collection. */ private boolean restoreRemovedChangeSet(Object changeSet) { int changeSetIndex = this.getRemovesIndexOf(changeSet); if (changeSetIndex == -1) { return false; } this.getRemoves().remove(changeSetIndex); int removeIndex = this.getRemoveIndex(changeSetIndex); this.setRemoveIndexes(this.removeFrom(changeSetIndex, this.getRemoveIndexes())); // now move the change set over to the collection of moves this.addMovedChangeSet(changeSet, removeIndex, this.getNewCollectionSize()); return true; }
changeRecord.addMovedChangeSet(this.buildChangeSet(cloneElement, owner, session), j, i); break;// matching backup element found - skip the rest of them
changeRecord.addMovedChangeSet(this.buildChangeSet(cloneElement, owner, session), j, i); break;// matching backup element found - skip the rest of them
changeRecord.addMovedChangeSet(this.buildChangeSet(cloneElement, owner, session), j, i); break;// matching backup element found - skip the rest of them
changeRecord.addMovedChangeSet(this.buildChangeSet(cloneElement, owner, session), j, i); break;// matching backup element found - skip the rest of them
changeRecord.addMovedChangeSet(this.buildChangeSet(cloneElement, owner, session), j, i); break;// matching backup element found - skip the rest of them
changeRecord.addMovedChangeSet(this.buildChangeSet(cloneElement, owner, session), j, i); break;// matching backup element found - skip the rest of them