/** * Return whether any changes have been recorded with the change record. */ public boolean hasChanges() { if (this.hasAdds() || this.hasRemoves() || this.getOwner().isNew()) { return true; } // BUG#.... the moves always contain everything, must check if any indexes are different. if (hasMoves()) { for (int index = 0; index < moveIndexPairs.length; index++) { if (moveIndexPairs[index][0] != moveIndexPairs[index][1]) { return true; } } } return false; }
/** * Return whether any changes have been recorded with the change record. */ public boolean hasChanges() { if (this.hasAdds() || this.hasRemoves() || this.getOwner().isNew()) { return true; } // BUG#.... the moves always contain everything, must check if any indexes are different. if (hasMoves()) { for (int index = 0; index < moveIndexPairs.length; index++) { if (moveIndexPairs[index][0] != moveIndexPairs[index][1]) { return true; } } } return false; }
/** * Return whether any changes have been recorded with the change record. */ public boolean hasChanges() { if (this.hasAdds() || this.hasRemoves() || this.getOwner().isNew()) { return true; } // BUG#.... the moves always contain everything, must check if any indexes are different. if (hasMoves()) { for (int index = 0; index < moveIndexPairs.length; index++) { if (moveIndexPairs[index][0] != moveIndexPairs[index][1]) { return true; } } } return false; }